Index: Source/core/css/CSSSelector.h |
diff --git a/Source/core/css/CSSSelector.h b/Source/core/css/CSSSelector.h |
index 34eba5772adc2e4822e8ad24c740000a4cb33119..5d2845a7541c5fffb052927a42bc4a80d7cbb517 100644 |
--- a/Source/core/css/CSSSelector.h |
+++ b/Source/core/css/CSSSelector.h |
@@ -133,7 +133,6 @@ namespace WebCore { |
// replace the following /shadow/ and /shadow-deep/ with the implementation. |
Shadow, // /shadow/ combinator |
ShadowDeep, // /shadow-deep/ combinator |
- ShadowContent // /content/ for shadow styling |
}; |
enum PseudoType { |
@@ -217,6 +216,7 @@ namespace WebCore { |
PseudoPastCue, |
PseudoDistributed, |
PseudoUnresolved, |
+ PseudoContent, |
PseudoHost, |
PseudoAncestor |
}; |
@@ -293,6 +293,7 @@ namespace WebCore { |
bool isSiblingSelector() const; |
bool isAttributeSelector() const; |
bool isDistributedPseudoElement() const; |
+ bool isContentPseudoElement() const; |
bool isHostPseudoClass() const; |
// FIXME: selectors with no tagHistory() get a relation() of Descendant. It should instead be |
@@ -313,7 +314,7 @@ namespace WebCore { |
bool relationIsAffectedByPseudoContent() const { return m_relationIsAffectedByPseudoContent; } |
void setRelationIsAffectedByPseudoContent() { m_relationIsAffectedByPseudoContent = true; } |
- unsigned m_relation : 4; // enum Relation |
+ unsigned m_relation : 3; // enum Relation |
mutable unsigned m_match : 4; // enum Match |
mutable unsigned m_pseudoType : 8; // PseudoType |
@@ -423,6 +424,11 @@ inline bool CSSSelector::isDistributedPseudoElement() const |
return m_match == PseudoElement && pseudoType() == PseudoDistributed; |
} |
+inline bool CSSSelector::isContentPseudoElement() const |
+{ |
+ return m_match == PseudoElement && pseudoType() == PseudoContent; |
+} |
+ |
inline void CSSSelector::setValue(const AtomicString& value) |
{ |
ASSERT(m_match != Tag); |