Struct

WPEWebKitUserStyleSheet

Description [src]

struct WebKitUserStyleSheet {
  /* No available fields */
}

A CSS style sheet which can be injected in loaded pages.

Available since:2.6

Constructors

webkit_user_style_sheet_new

Creates a new user style sheet. Style sheets can be applied to some URIs only by passing non-null values for allow_list or block_list. Passing a NULL allow_list implies that all URIs are on the allow_list. The style sheet is applied if an URI matches the allow_list and not the block_list. URI patterns must be of the form [protocol]://[host]/[path], where the host and path components can contain the wildcard character (*) to represent zero or more other characters.

Available since: 2.6

webkit_user_style_sheet_new_for_world

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

Available since: 2.22

Instance methods

webkit_user_style_sheet_ref

Atomically increments the reference count of user_style_sheet by one. This function is MT-safe and may be called from any thread.

Available since: 2.6

webkit_user_style_sheet_unref

Atomically decrements the reference count of user_style_sheet by one. If the reference count drops to 0, all memory allocated by WebKitUserStyleSheet is released. This function is MT-safe and may be called from any thread.

Available since: 2.6