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

#include <CSSParserImpl.h>

Public Types

enum  AllowedRulesType {
  AllowCharsetRules, AllowImportRules, AllowNamespaceRules, RegularRules,
  KeyframeRules, ApplyRules, NoRules
}
 

Public Member Functions

 CSSParserImpl (const CSSParserContext &, const String &, StyleSheetContents *=nullptr, CSSParserObserverWrapper *=nullptr, CSSParser::RuleParsing=CSSParser::RuleParsing::Normal)
 
bool supportsDeclaration (CSSParserTokenRange &)
 
CSSTokenizertokenizer () const
 
CSSDeferredParserdeferredParser () const
 

Static Public Member Functions

static CSSParser::ParseResult parseValue (MutableStyleProperties *, CSSPropertyID, const String &, bool important, const CSSParserContext &)
 
static CSSParser::ParseResult parseCustomPropertyValue (MutableStyleProperties *, const AtomicString &propertyName, const String &, bool important, const CSSParserContext &)
 
static Ref< ImmutableStylePropertiesparseInlineStyleDeclaration (const String &, Element *)
 
static bool parseDeclarationList (MutableStyleProperties *, const String &, const CSSParserContext &)
 
static RefPtr< StyleRuleBaseparseRule (const String &, const CSSParserContext &, StyleSheetContents *, AllowedRulesType)
 
static void parseStyleSheet (const String &, const CSSParserContext &, StyleSheetContents *, CSSParser::RuleParsing)
 
static CSSSelectorList parsePageSelector (CSSParserTokenRange, StyleSheetContents *)
 
static std::unique_ptr< Vector< double > > parseKeyframeKeyList (const String &)
 
static void parseDeclarationListForInspector (const String &, const CSSParserContext &, CSSParserObserver &)
 
static void parseStyleSheetForInspector (const String &, const CSSParserContext &, StyleSheetContents *, CSSParserObserver &)
 
static Ref< ImmutableStylePropertiesparseDeferredDeclaration (CSSParserTokenRange, const CSSParserContext &, StyleSheetContents *)
 
static void parseDeferredRuleList (CSSParserTokenRange, CSSDeferredParser &, Vector< RefPtr< StyleRuleBase >> &)
 
static void parseDeferredKeyframeList (CSSParserTokenRange, CSSDeferredParser &, StyleRuleKeyframes &)
 

Member Enumeration Documentation

◆ AllowedRulesType

Enumerator
AllowCharsetRules 
AllowImportRules 
AllowNamespaceRules 
RegularRules 
KeyframeRules 
ApplyRules 
NoRules 

Constructor & Destructor Documentation

◆ CSSParserImpl()

WebCore::CSSParserImpl::CSSParserImpl ( const CSSParserContext context,
const String string,
StyleSheetContents styleSheet = nullptr,
CSSParserObserverWrapper wrapper = nullptr,
CSSParser::RuleParsing  ruleParsing = CSSParser::RuleParsing::Normal 
)

Member Function Documentation

◆ deferredParser()

CSSDeferredParser* WebCore::CSSParserImpl::deferredParser ( ) const
inline

◆ parseCustomPropertyValue()

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

◆ parseDeclarationList()

bool WebCore::CSSParserImpl::parseDeclarationList ( MutableStyleProperties declaration,
const String string,
const CSSParserContext context 
)
static

◆ parseDeclarationListForInspector()

void WebCore::CSSParserImpl::parseDeclarationListForInspector ( const String declaration,
const CSSParserContext context,
CSSParserObserver observer 
)
static

◆ parseDeferredDeclaration()

Ref< ImmutableStyleProperties > WebCore::CSSParserImpl::parseDeferredDeclaration ( CSSParserTokenRange  tokenRange,
const CSSParserContext context,
StyleSheetContents styleSheet 
)
static

◆ parseDeferredKeyframeList()

void WebCore::CSSParserImpl::parseDeferredKeyframeList ( CSSParserTokenRange  tokenRange,
CSSDeferredParser deferredParser,
StyleRuleKeyframes keyframeRule 
)
static

◆ parseDeferredRuleList()

void WebCore::CSSParserImpl::parseDeferredRuleList ( CSSParserTokenRange  tokenRange,
CSSDeferredParser deferredParser,
Vector< RefPtr< StyleRuleBase >> &  childRules 
)
static

◆ parseInlineStyleDeclaration()

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

◆ parseKeyframeKeyList()

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

◆ parsePageSelector()

CSSSelectorList WebCore::CSSParserImpl::parsePageSelector ( CSSParserTokenRange  range,
StyleSheetContents styleSheet 
)
static

◆ parseRule()

RefPtr< StyleRuleBase > WebCore::CSSParserImpl::parseRule ( const String string,
const CSSParserContext context,
StyleSheetContents styleSheet,
AllowedRulesType  allowedRules 
)
static

◆ parseStyleSheet()

void WebCore::CSSParserImpl::parseStyleSheet ( const String string,
const CSSParserContext context,
StyleSheetContents styleSheet,
CSSParser::RuleParsing  ruleParsing 
)
static

◆ parseStyleSheetForInspector()

void WebCore::CSSParserImpl::parseStyleSheetForInspector ( const String string,
const CSSParserContext context,
StyleSheetContents styleSheet,
CSSParserObserver observer 
)
static

◆ parseValue()

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

◆ supportsDeclaration()

bool WebCore::CSSParserImpl::supportsDeclaration ( CSSParserTokenRange range)

◆ tokenizer()

CSSTokenizer* WebCore::CSSParserImpl::tokenizer ( ) const
inline

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