Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions
nsICSSParser Class Reference

#include <nsICSSParser.h>

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

List of all members.

Public Member Functions

NS_IMETHOD SetStyleSheet (nsICSSStyleSheet *aSheet)=0
NS_IMETHOD SetCaseSensitive (PRBool aCaseSensitive)=0
NS_IMETHOD SetQuirkMode (PRBool aQuirkMode)=0
NS_IMETHOD SetChildLoader (nsICSSLoader *aChildLoader)=0
NS_IMETHOD Parse (nsIUnicharInputStream *aInput, nsIURI *aSheetURL, nsIURI *aBaseURI, PRUint32 aLineNumber, nsICSSStyleSheet *&aResult)=0
NS_IMETHOD ParseStyleAttribute (const nsAString &aAttributeValue, nsIURI *aDocURL, nsIURI *aBaseURL, nsICSSStyleRule **aResult)=0
NS_IMETHOD ParseAndAppendDeclaration (const nsAString &aBuffer, nsIURI *aSheetURL, nsIURI *aBaseURL, nsCSSDeclaration *aDeclaration, PRBool aParseOnlyOneDecl, PRBool *aChanged, PRBool aClearOldDecl)=0
NS_IMETHOD ParseRule (const nsAString &aRule, nsIURI *aSheetURL, nsIURI *aBaseURL, nsISupportsArray **aResult)=0
NS_IMETHOD ParseProperty (const nsCSSProperty aPropID, const nsAString &aPropValue, nsIURI *aSheetURL, nsIURI *aBaseURL, nsCSSDeclaration *aDeclaration, PRBool *aChanged)=0
NS_IMETHOD ParseMediaList (const nsSubstring &aBuffer, nsIURI *aURL, PRUint32 aLineNumber, nsMediaList *aMediaList, PRBool aHTMLMode)=0
 Parse aBuffer into a media list |aMediaList|, which must be non-null, replacing its current contents.
NS_IMETHOD ParseColorString (const nsSubstring &aBuffer, nsIURI *aURL, PRUint32 aLineNumber, PRBool aHandleAlphaColors, nscolor *aColor)=0
 Parse aBuffer into a nscolor |aColor|.

Detailed Description

Definition at line 63 of file nsICSSParser.h.


Member Function Documentation

NS_IMETHOD nsICSSParser::Parse ( nsIUnicharInputStream aInput,
nsIURI aSheetURL,
nsIURI aBaseURI,
PRUint32  aLineNumber,
nsICSSStyleSheet *&  aResult 
) [pure virtual]

Implemented in CSSParserImpl.

NS_IMETHOD nsICSSParser::ParseAndAppendDeclaration ( const nsAString &  aBuffer,
nsIURI aSheetURL,
nsIURI aBaseURL,
nsCSSDeclaration aDeclaration,
PRBool  aParseOnlyOneDecl,
PRBool aChanged,
PRBool  aClearOldDecl 
) [pure virtual]

Implemented in CSSParserImpl.

NS_IMETHOD nsICSSParser::ParseColorString ( const nsSubstring aBuffer,
nsIURI aURL,
PRUint32  aLineNumber,
PRBool  aHandleAlphaColors,
nscolor aColor 
) [pure virtual]

Parse aBuffer into a nscolor |aColor|.

If aHandleAlphaColors is set, handle rgba()/hsla(). Will return NS_ERROR_FAILURE if aBuffer is not a valid CSS color specification.

Will also currently return NS_ERROR_FAILURE if it is not self-contained (i.e. doesn't reference any external style state, such as "initial" or "inherit").

Implemented in CSSParserImpl.

NS_IMETHOD nsICSSParser::ParseMediaList ( const nsSubstring aBuffer,
nsIURI aURL,
PRUint32  aLineNumber,
nsMediaList aMediaList,
PRBool  aHTMLMode 
) [pure virtual]

Parse aBuffer into a media list |aMediaList|, which must be non-null, replacing its current contents.

If aHTMLMode is true, parse according to HTML rules, with commas as the most important delimiter. Otherwise, parse according to CSS rules, with parentheses and strings more important than commas.

Implemented in CSSParserImpl.

NS_IMETHOD nsICSSParser::ParseProperty ( const nsCSSProperty  aPropID,
const nsAString &  aPropValue,
nsIURI aSheetURL,
nsIURI aBaseURL,
nsCSSDeclaration aDeclaration,
PRBool aChanged 
) [pure virtual]

Implemented in CSSParserImpl.

NS_IMETHOD nsICSSParser::ParseRule ( const nsAString &  aRule,
nsIURI aSheetURL,
nsIURI aBaseURL,
nsISupportsArray **  aResult 
) [pure virtual]

Implemented in CSSParserImpl.

NS_IMETHOD nsICSSParser::ParseStyleAttribute ( const nsAString &  aAttributeValue,
nsIURI aDocURL,
nsIURI aBaseURL,
nsICSSStyleRule **  aResult 
) [pure virtual]

Implemented in CSSParserImpl.

Here is the caller graph for this function:

NS_IMETHOD nsICSSParser::SetCaseSensitive ( PRBool  aCaseSensitive) [pure virtual]

Implemented in CSSParserImpl.

Here is the caller graph for this function:

NS_IMETHOD nsICSSParser::SetChildLoader ( nsICSSLoader aChildLoader) [pure virtual]

Implemented in CSSParserImpl.

NS_IMETHOD nsICSSParser::SetQuirkMode ( PRBool  aQuirkMode) [pure virtual]

Implemented in CSSParserImpl.

Here is the caller graph for this function:

Implemented in CSSParserImpl.


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