Struct xpcom::interfaces::nsIStyleSheetService [] [src]

#[repr(C)]
pub struct nsIStyleSheetService { /* fields omitted */ }

interface nsIStyleSheetService : nsISupports

Methods

impl nsIStyleSheetService
[src]

[src]

Cast this nsIStyleSheetService to one of its base interfaces.

impl nsIStyleSheetService
[src]

AGENT_SHEET: i64 = 0

USER_SHEET: i64 = 1

AUTHOR_SHEET: i64 = 2

[src]

/**
   * Synchronously loads a style sheet from |sheetURI| and adds it to the list
   * of user or agent style sheets.
   *
   * A user sheet loaded via this API will come before userContent.css and
   * userChrome.css in the cascade (so the rules in it will have lower
   * precedence than rules in those sheets).
   *
   * An agent sheet loaded via this API will come after ua.css in the cascade
   * (so the rules in it will have higher precedence than rules in ua.css).
   *
   * The relative ordering of two user or two agent sheets loaded via
   * this API is undefined.
   *
   * Sheets added via this API take effect on all documents, including
   * already-loaded ones, immediately.
   */

void loadAndRegisterSheet (in nsIURI sheetURI, in unsigned long type);

[src]

/**
   * Returns true if a style sheet at |sheetURI| has previously been
   * added to the list of style sheets specified by |type|.
   */

boolean sheetRegistered (in nsIURI sheetURI, in unsigned long type);

[src]

/**
   * Synchronously loads a style sheet from |sheetURI| and returns the
   * new style sheet object. Can be used with nsIDOMWindowUtils.addSheet.
   */

nsIPreloadedStyleSheet preloadSheet (in nsIURI sheetURI, in unsigned long type);

[src]

/**
   * Remove the style sheet at |sheetURI| from the list of style sheets
   * specified by |type|.  The removal takes effect immediately, even for
   * already-loaded documents.
   */

void unregisterSheet (in nsIURI sheetURI, in unsigned long type);

Methods from Deref<Target = nsISupports>

[src]

Cast this nsISupports to one of its base interfaces.

[src]

void QueryInterface (in nsIIDRef uuid, [iid_is (uuid), retval] out nsQIResult result);

[src]

[noscript,notxpcom] nsrefcnt AddRef ();

[src]

[noscript,notxpcom] nsrefcnt Release ();

Trait Implementations

impl XpCom for nsIStyleSheetService
[src]

IID: nsIID = nsID(1306953878, 59627, 16862, [130, 55, 167, 151, 181, 112, 172, 74])

[src]

Perform a QueryInterface call on this object, attempting to dynamically cast it to the requested interface type. Returns Some(RefPtr) if the cast succeeded, and None otherwise. Read more

impl RefCounted for nsIStyleSheetService
[src]

[src]

Increment the reference count.

[src]

Decrement the reference count, potentially freeing backing memory.

impl Deref for nsIStyleSheetService
[src]

The resulting type after dereferencing.

[src]

Dereferences the value.