| Index: third_party/WebKit/Source/core/css/CSSSelector.cpp
|
| diff --git a/third_party/WebKit/Source/core/css/CSSSelector.cpp b/third_party/WebKit/Source/core/css/CSSSelector.cpp
|
| index f660e57faa3644ad688fd21665facfa3100c9665..4a2e23e280e2ee596e9c5c29b028b6d874f15b5d 100644
|
| --- a/third_party/WebKit/Source/core/css/CSSSelector.cpp
|
| +++ b/third_party/WebKit/Source/core/css/CSSSelector.cpp
|
| @@ -881,6 +881,17 @@ bool CSSSelector::matchNth(int count) const
|
| return m_data.m_rareData->matchNth(count);
|
| }
|
|
|
| +bool CSSSelector::matchesPseudoElement() const
|
| +{
|
| + for (const CSSSelector* current = this; current; current = current->tagHistory()) {
|
| + if (current->match() == PseudoElement)
|
| + return true;
|
| + if (current->relation() != SubSelector)
|
| + return false;
|
| + }
|
| + return false;
|
| +}
|
| +
|
| CSSSelector::RareData::RareData(const AtomicString& value)
|
| : m_matchingValue(value)
|
| , m_serializingValue(value)
|
|
|