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

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

Issue 2778983006: Make /deep/ as no-op and remove ::shadow in dynamic profile (Closed)
Patch Set: rebased Created 3 years, 7 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: third_party/WebKit/Source/core/css/CSSSelector.h
diff --git a/third_party/WebKit/Source/core/css/CSSSelector.h b/third_party/WebKit/Source/core/css/CSSSelector.h
index 91e93c38e4eeba324faa946878a8e2e2a311335b..8f3e577f761b9e3b57c16c5e11f9f18c7f949671 100644
--- a/third_party/WebKit/Source/core/css/CSSSelector.h
+++ b/third_party/WebKit/Source/core/css/CSSSelector.h
@@ -25,6 +25,7 @@
#include <memory>
#include "core/CoreExport.h"
+#include "core/css/parser/CSSParserContext.h"
#include "core/dom/QualifiedName.h"
#include "core/style/ComputedStyleConstants.h"
#include "platform/wtf/RefCounted.h"
@@ -132,6 +133,7 @@ class CORE_EXPORT CSSSelector {
// Special cases for shadow DOM related selectors.
kShadowPiercingDescendant, // >>> combinator
kShadowDeep, // /deep/ combinator
+ kShadowDeepAsDescendant, // /deep/ as an alias for descendant
kShadowPseudo, // ::shadow pseudo element
kShadowSlot // ::slotted() pseudo element
};
@@ -238,7 +240,9 @@ class CORE_EXPORT CSSSelector {
PseudoType GetPseudoType() const {
return static_cast<PseudoType>(pseudo_type_);
}
- void UpdatePseudoType(const AtomicString&, bool has_arguments);
+ void UpdatePseudoType(const AtomicString&,
+ const CSSParserContext&,
+ bool has_arguments);
static PseudoType ParsePseudoType(const AtomicString&, bool has_arguments);
static PseudoId ParsePseudoId(const String&);
« no previous file with comments | « third_party/WebKit/Source/core/css/CSSPageRule.cpp ('k') | third_party/WebKit/Source/core/css/CSSSelector.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698