UserStyleSheet.this

Creates a new user style sheet for script world with name @world_name. See webkit_user_style_sheet_new() for a full description.

  1. this(WebKitUserStyleSheet* webKitUserStyleSheet, bool ownedRef)
  2. this(string source, WebKitUserContentInjectedFrames injectedFrames, WebKitUserStyleLevel level, string[] allowList, string[] blockList)
  3. this(string source, WebKitUserContentInjectedFrames injectedFrames, WebKitUserStyleLevel level, string worldName, string[] allowList, string[] blockList)
    class UserStyleSheet
    this
    (
    string source
    ,
    WebKitUserContentInjectedFrames injectedFrames
    ,
    WebKitUserStyleLevel level
    ,
    string worldName
    ,
    string[] allowList
    ,
    string[] blockList
    )

Parameters

source string

Source code of the user style sheet.

injectedFrames WebKitUserContentInjectedFrames

A #WebKitUserContentInjectedFrames value

level WebKitUserStyleLevel

A #WebKitUserStyleLevel

worldName string

the name of a #WebKitScriptWorld

allowList string[]

An allow_list of URI patterns or %NULL

blockList string[]

A block_list of URI patterns or %NULL

Return Value

A new #WebKitUserStyleSheet

Throws

ConstructionException GTK+ fails to create the object.

Meta

Since

2.22