Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(450)

Unified Diff: Source/core/css/CSSSelector.h

Issue 21151005: Implement ::content (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Source/core/css/CSSSelector.h
diff --git a/Source/core/css/CSSSelector.h b/Source/core/css/CSSSelector.h
index 2e562621c8e2f25323a986bb1f0ade86125ce66d..c048269b163dd535a0e25a2232947bd618c8db8f 100644
--- a/Source/core/css/CSSSelector.h
+++ b/Source/core/css/CSSSelector.h
@@ -162,7 +162,8 @@ namespace WebCore {
PseudoPastCue,
PseudoSeamlessDocument,
PseudoDistributed,
- PseudoUnresolved
+ PseudoUnresolved,
+ PseudoContent
};
enum MarginBoxType {
@@ -218,6 +219,7 @@ namespace WebCore {
bool isSiblingSelector() const;
bool isAttributeSelector() const;
bool isDistributedPseudoElement() const;
+ bool isContentPseudoElement() const;
Relation relation() const { return static_cast<Relation>(m_relation); }
@@ -339,6 +341,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);

Powered by Google App Engine
This is Rietveld 408576698