webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
Public Types | Public Member Functions | Static Public Member Functions | List of all members
WebCore::CSSParser Class Reference

#include <CSSParser.h>

Public Types

enum  ParseResult {
  ParseResult::Changed, ParseResult::Unchanged, ParseResult::Error, ParseResult::Changed,
  ParseResult::Unchanged, ParseResult::Error
}
 
enum  RuleParsing { RuleParsing::Normal, RuleParsing::Deferred, RuleParsing::Normal, RuleParsing::Deferred }
 
enum  ParseResult {
  ParseResult::Changed, ParseResult::Unchanged, ParseResult::Error, ParseResult::Changed,
  ParseResult::Unchanged, ParseResult::Error
}
 
enum  RuleParsing { RuleParsing::Normal, RuleParsing::Deferred, RuleParsing::Normal, RuleParsing::Deferred }
 

Public Member Functions

WEBCORE_EXPORT CSSParser (const CSSParserContext &)
 
WEBCORE_EXPORT ~CSSParser ()
 
void parseSheet (StyleSheetContents *, const String &, RuleParsing=RuleParsing::Normal)
 
RefPtr< StyleRuleKeyframeparseKeyframeRule (const String &)
 
bool parseSupportsCondition (const String &)
 
WEBCORE_EXPORT bool parseDeclaration (MutableStyleProperties &, const String &)
 
void parseSelector (const String &, CSSSelectorList &)
 
RefPtr< CSSValueparseValueWithVariableReferences (CSSPropertyID, const CSSValue &, const CustomPropertyValueMap &customProperties, TextDirection, WritingMode)
 
WEBCORE_EXPORT CSSParser (const CSSParserContext &)
 
WEBCORE_EXPORT ~CSSParser ()
 
void parseSheet (StyleSheetContents *, const String &, RuleParsing=RuleParsing::Normal)
 
RefPtr< StyleRuleKeyframeparseKeyframeRule (const String &)
 
bool parseSupportsCondition (const String &)
 
WEBCORE_EXPORT bool parseDeclaration (MutableStyleProperties &, const String &)
 
void parseSelector (const String &, CSSSelectorList &)
 
RefPtr< CSSValueparseValueWithVariableReferences (CSSPropertyID, const CSSValue &, const CustomPropertyValueMap &customProperties, TextDirection, WritingMode)
 

Static Public Member Functions

static RefPtr< StyleRuleBaseparseRule (const CSSParserContext &, StyleSheetContents *, const String &)
 
static std::unique_ptr< Vector< double > > parseKeyframeKeyList (const String &)
 
static void parseSheetForInspector (const CSSParserContext &, StyleSheetContents *, const String &, CSSParserObserver &)
 
static void parseDeclarationForInspector (const CSSParserContext &, const String &, CSSParserObserver &)
 
static ParseResult parseValue (MutableStyleProperties &, CSSPropertyID, const String &, bool important, const CSSParserContext &)
 
static ParseResult parseCustomPropertyValue (MutableStyleProperties &, const AtomicString &propertyName, const String &, bool important, const CSSParserContext &)
 
static RefPtr< CSSValueparseFontFaceDescriptor (CSSPropertyID, const String &, const CSSParserContext &)
 
static RefPtr< CSSValueparseSingleValue (CSSPropertyID, const String &, const CSSParserContext &=strictCSSParserContext())
 
static Ref< ImmutableStylePropertiesparseInlineStyleDeclaration (const String &, Element *)
 
static Color parseColor (const String &, bool strict=false)
 
static Color parseSystemColor (const String &, Document *)
 
static RefPtr< StyleRuleBaseparseRule (const CSSParserContext &, StyleSheetContents *, const String &)
 
static std::unique_ptr< Vector< double > > parseKeyframeKeyList (const String &)
 
static void parseSheetForInspector (const CSSParserContext &, StyleSheetContents *, const String &, CSSParserObserver &)
 
static void parseDeclarationForInspector (const CSSParserContext &, const String &, CSSParserObserver &)
 
static ParseResult parseValue (MutableStyleProperties &, CSSPropertyID, const String &, bool important, const CSSParserContext &)
 
static ParseResult parseCustomPropertyValue (MutableStyleProperties &, const AtomicString &propertyName, const String &, bool important, const CSSParserContext &)
 
static RefPtr< CSSValueparseFontFaceDescriptor (CSSPropertyID, const String &, const CSSParserContext &)
 
static RefPtr< CSSValueparseSingleValue (CSSPropertyID, const String &, const CSSParserContext &=strictCSSParserContext())
 
static Ref< ImmutableStylePropertiesparseInlineStyleDeclaration (const String &, Element *)
 
static Color parseColor (const String &, bool strict=false)
 
static Color parseSystemColor (const String &, Document *)
 

Member Enumeration Documentation

◆ ParseResult [1/2]

Enumerator
Changed 
Unchanged 
Error 
Changed 
Unchanged 
Error 

◆ ParseResult [2/2]

Enumerator
Changed 
Unchanged 
Error 
Changed 
Unchanged 
Error 

◆ RuleParsing [1/2]

Enumerator
Normal 
Deferred 
Normal 
Deferred 

◆ RuleParsing [2/2]

Enumerator
Normal 
Deferred 
Normal 
Deferred 

Constructor & Destructor Documentation

◆ CSSParser() [1/2]

WebCore::CSSParser::CSSParser ( const CSSParserContext context)
explicit

◆ ~CSSParser() [1/2]

WebCore::CSSParser::~CSSParser ( )

◆ CSSParser() [2/2]

WEBCORE_EXPORT WebCore::CSSParser::CSSParser ( const CSSParserContext )
explicit

◆ ~CSSParser() [2/2]

WEBCORE_EXPORT WebCore::CSSParser::~CSSParser ( )

Member Function Documentation

◆ parseColor() [1/2]

Color WebCore::CSSParser::parseColor ( const String string,
bool  strict = false 
)
static

◆ parseColor() [2/2]

static Color WebCore::CSSParser::parseColor ( const String ,
bool  strict = false 
)
static

◆ parseCustomPropertyValue() [1/2]

CSSParser::ParseResult WebCore::CSSParser::parseCustomPropertyValue ( MutableStyleProperties declaration,
const AtomicString propertyName,
const String string,
bool  important,
const CSSParserContext context 
)
static

◆ parseCustomPropertyValue() [2/2]

static ParseResult WebCore::CSSParser::parseCustomPropertyValue ( MutableStyleProperties ,
const AtomicString propertyName,
const String ,
bool  important,
const CSSParserContext  
)
static

◆ parseDeclaration() [1/2]

bool WebCore::CSSParser::parseDeclaration ( MutableStyleProperties declaration,
const String string 
)

◆ parseDeclaration() [2/2]

WEBCORE_EXPORT bool WebCore::CSSParser::parseDeclaration ( MutableStyleProperties ,
const String  
)

◆ parseDeclarationForInspector() [1/2]

void WebCore::CSSParser::parseDeclarationForInspector ( const CSSParserContext context,
const String string,
CSSParserObserver observer 
)
static

◆ parseDeclarationForInspector() [2/2]

static void WebCore::CSSParser::parseDeclarationForInspector ( const CSSParserContext ,
const String ,
CSSParserObserver  
)
static

◆ parseFontFaceDescriptor() [1/2]

RefPtr< CSSValue > WebCore::CSSParser::parseFontFaceDescriptor ( CSSPropertyID  propertyID,
const String propertyValue,
const CSSParserContext context 
)
static

◆ parseFontFaceDescriptor() [2/2]

static RefPtr<CSSValue> WebCore::CSSParser::parseFontFaceDescriptor ( CSSPropertyID  ,
const String ,
const CSSParserContext  
)
static

◆ parseInlineStyleDeclaration() [1/2]

Ref< ImmutableStyleProperties > WebCore::CSSParser::parseInlineStyleDeclaration ( const String string,
Element element 
)
static

◆ parseInlineStyleDeclaration() [2/2]

static Ref<ImmutableStyleProperties> WebCore::CSSParser::parseInlineStyleDeclaration ( const String ,
Element  
)
static

◆ parseKeyframeKeyList() [1/2]

static std::unique_ptr<Vector<double> > WebCore::CSSParser::parseKeyframeKeyList ( const String )
static

◆ parseKeyframeKeyList() [2/2]

std::unique_ptr< Vector< double > > WebCore::CSSParser::parseKeyframeKeyList ( const String selector)
static

◆ parseKeyframeRule() [1/2]

RefPtr< StyleRuleKeyframe > WebCore::CSSParser::parseKeyframeRule ( const String string)

◆ parseKeyframeRule() [2/2]

RefPtr<StyleRuleKeyframe> WebCore::CSSParser::parseKeyframeRule ( const String )

◆ parseRule() [1/2]

static RefPtr<StyleRuleBase> WebCore::CSSParser::parseRule ( const CSSParserContext ,
StyleSheetContents ,
const String  
)
static

◆ parseRule() [2/2]

RefPtr< StyleRuleBase > WebCore::CSSParser::parseRule ( const CSSParserContext context,
StyleSheetContents sheet,
const String string 
)
static

◆ parseSelector() [1/2]

void WebCore::CSSParser::parseSelector ( const String string,
CSSSelectorList selectorList 
)

◆ parseSelector() [2/2]

void WebCore::CSSParser::parseSelector ( const String ,
CSSSelectorList  
)

◆ parseSheet() [1/2]

void WebCore::CSSParser::parseSheet ( StyleSheetContents ,
const String ,
RuleParsing  = RuleParsing::Normal 
)

◆ parseSheet() [2/2]

void WebCore::CSSParser::parseSheet ( StyleSheetContents sheet,
const String string,
RuleParsing  ruleParsing = RuleParsing::Normal 
)

◆ parseSheetForInspector() [1/2]

static void WebCore::CSSParser::parseSheetForInspector ( const CSSParserContext ,
StyleSheetContents ,
const String ,
CSSParserObserver  
)
static

◆ parseSheetForInspector() [2/2]

void WebCore::CSSParser::parseSheetForInspector ( const CSSParserContext context,
StyleSheetContents sheet,
const String string,
CSSParserObserver observer 
)
static

◆ parseSingleValue() [1/2]

static RefPtr<CSSValue> WebCore::CSSParser::parseSingleValue ( CSSPropertyID  ,
const String ,
const CSSParserContext = strictCSSParserContext() 
)
static

◆ parseSingleValue() [2/2]

RefPtr< CSSValue > WebCore::CSSParser::parseSingleValue ( CSSPropertyID  propertyID,
const String string,
const CSSParserContext context = strictCSSParserContext() 
)
static

◆ parseSupportsCondition() [1/2]

bool WebCore::CSSParser::parseSupportsCondition ( const String )

◆ parseSupportsCondition() [2/2]

bool WebCore::CSSParser::parseSupportsCondition ( const String condition)

◆ parseSystemColor() [1/2]

static Color WebCore::CSSParser::parseSystemColor ( const String ,
Document  
)
static

◆ parseSystemColor() [2/2]

Color WebCore::CSSParser::parseSystemColor ( const String string,
Document document 
)
static

◆ parseValue() [1/2]

CSSParser::ParseResult WebCore::CSSParser::parseValue ( MutableStyleProperties declaration,
CSSPropertyID  propertyID,
const String string,
bool  important,
const CSSParserContext context 
)
static

◆ parseValue() [2/2]

static ParseResult WebCore::CSSParser::parseValue ( MutableStyleProperties ,
CSSPropertyID  ,
const String ,
bool  important,
const CSSParserContext  
)
static

◆ parseValueWithVariableReferences() [1/2]

RefPtr< CSSValue > WebCore::CSSParser::parseValueWithVariableReferences ( CSSPropertyID  propID,
const CSSValue value,
const CustomPropertyValueMap customProperties,
TextDirection  direction,
WritingMode  writingMode 
)

◆ parseValueWithVariableReferences() [2/2]

RefPtr<CSSValue> WebCore::CSSParser::parseValueWithVariableReferences ( CSSPropertyID  ,
const CSSValue ,
const CustomPropertyValueMap customProperties,
TextDirection  ,
WritingMode   
)

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