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

#include <SelectorChecker.h>

Classes

struct  CheckingContext
 
struct  LocalContext
 

Public Types

enum  Mode : unsigned char { Mode::ResolvingStyle = 0, Mode::CollectingRules, Mode::CollectingRulesIgnoringVirtualPseudoElements, Mode::QueryingRules }
 
enum  LinkMatchMask { MatchDefault = 0, MatchLink = 1, MatchVisited = 2, MatchAll = MatchLink | MatchVisited }
 

Public Member Functions

 SelectorChecker (Document &)
 
bool match (const CSSSelector &, const Element &, CheckingContext &, unsigned &specificity) const
 
bool matchHostPseudoClass (const CSSSelector &, const Element &, CheckingContext &, unsigned &specificity) const
 

Static Public Member Functions

static bool isCommonPseudoClassSelector (const CSSSelector *)
 
static bool matchesFocusPseudoClass (const Element &)
 
static bool attributeSelectorMatches (const Element &, const QualifiedName &, const AtomicString &attributeValue, const CSSSelector &)
 
static unsigned determineLinkMatchType (const CSSSelector *)
 

Member Enumeration Documentation

◆ LinkMatchMask

Enumerator
MatchDefault 
MatchLink 
MatchVisited 
MatchAll 

◆ Mode

enum WebCore::SelectorChecker::Mode : unsigned char
strong
Enumerator
ResolvingStyle 
CollectingRules 
CollectingRulesIgnoringVirtualPseudoElements 
QueryingRules 

Constructor & Destructor Documentation

◆ SelectorChecker()

WebCore::SelectorChecker::SelectorChecker ( Document document)

Member Function Documentation

◆ attributeSelectorMatches()

bool WebCore::SelectorChecker::attributeSelectorMatches ( const Element element,
const QualifiedName attributeName,
const AtomicString attributeValue,
const CSSSelector selector 
)
static

◆ determineLinkMatchType()

unsigned WebCore::SelectorChecker::determineLinkMatchType ( const CSSSelector selector)
static

◆ isCommonPseudoClassSelector()

bool WebCore::SelectorChecker::isCommonPseudoClassSelector ( const CSSSelector selector)
inlinestatic

◆ match()

bool WebCore::SelectorChecker::match ( const CSSSelector selector,
const Element element,
CheckingContext checkingContext,
unsigned &  specificity 
) const

◆ matchesFocusPseudoClass()

bool WebCore::SelectorChecker::matchesFocusPseudoClass ( const Element element)
static

◆ matchHostPseudoClass()

bool WebCore::SelectorChecker::matchHostPseudoClass ( const CSSSelector selector,
const Element element,
CheckingContext checkingContext,
unsigned &  specificity 
) const

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