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

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

Issue 652223002: Support style invalidation for ::content. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Missing removal of PseudoContent case when moving. Created 6 years, 2 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 2a2c36afcfae59ee734f4ac7a3fc5483ac2a4a99..c181f890e8439afb7a447790931bac0dfe8d55a9 100644
--- a/Source/core/css/CSSSelector.h
+++ b/Source/core/css/CSSSelector.h
@@ -297,7 +297,8 @@ namespace blink {
bool isContentPseudoElement() const;
bool isShadowPseudoElement() const;
bool isHostPseudoClass() const;
-
+ bool isTreeBoundaryCrossing() const;
+ bool isInsertionPointCrossing() const;
// FIXME: selectors with no tagHistory() get a relation() of Descendant (and sometimes even SubSelector). It should instead be
// None.
Relation relation() const { return static_cast<Relation>(m_relation); }
@@ -447,6 +448,17 @@ inline bool CSSSelector::isShadowPseudoElement() const
return m_match == PseudoElement && pseudoType() == PseudoShadow;
}
+inline bool CSSSelector::isTreeBoundaryCrossing() const
+{
+ return m_match == PseudoClass && (pseudoType() == PseudoHost || pseudoType() == PseudoHostContext);
+}
+
+inline bool CSSSelector::isInsertionPointCrossing() const
+{
+ return (m_match == PseudoClass && pseudoType() == PseudoHostContext)
+ || (m_match == PseudoElement && pseudoType() == PseudoContent);
+}
+
inline void CSSSelector::setValue(const AtomicString& value)
{
ASSERT(m_match != Tag);
« no previous file with comments | « LayoutTests/fast/css/invalidation/targeted-class-content-pseudo-expected.txt ('k') | Source/core/css/RuleFeature.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698