Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions | Public Attributes
nsIStyleSheetService Interface Reference

import "nsIStyleSheetService.idl";

Inheritance diagram for nsIStyleSheetService:
Inheritance graph
[legend]
Collaboration diagram for nsIStyleSheetService:
Collaboration graph
[legend]

List of all members.

Public Member Functions

void loadAndRegisterSheet (in nsIURI sheetURI, in unsigned long type)
 Synchronously loads a style sheet from |sheetURI| and adds it to the list of user or agent style sheets.
boolean sheetRegistered (in nsIURI sheetURI, in unsigned long type)
 Returns true if a style sheet at |sheetURI| has previously been added to the list of style sheets specified by |type|.
void unregisterSheet (in nsIURI sheetURI, in unsigned long type)
 Remove the style sheet at |sheetURI| from the list of style sheets specified by |type|.

Public Attributes

const unsigned long AGENT_SHEET = 0
const unsigned long USER_SHEET = 1

Detailed Description

Definition at line 49 of file nsIStyleSheetService.idl.


Member Function Documentation

void nsIStyleSheetService::loadAndRegisterSheet ( in nsIURI  sheetURI,
in unsigned long  type 
)

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.

boolean nsIStyleSheetService::sheetRegistered ( in nsIURI  sheetURI,
in unsigned long  type 
)

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

void nsIStyleSheetService::unregisterSheet ( in nsIURI  sheetURI,
in unsigned long  type 
)

Remove the style sheet at |sheetURI| from the list of style sheets specified by |type|.

All documents loaded after this call will no longer use the style sheet.


Member Data Documentation

Definition at line 51 of file nsIStyleSheetService.idl.

Definition at line 52 of file nsIStyleSheetService.idl.


The documentation for this interface was generated from the following file: