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

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: rebase 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 f4feecde158591b47c6845dcc21ce06cedf170ca..e81acf2711f6d826e1439fc179ae3fea53155e5f 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"
@@ -133,6 +134,7 @@ class CORE_EXPORT CSSSelector {
kShadowPiercingDescendant, // >>> combinator
kShadowDeep, // /deep/ combinator
kShadowPseudo, // ::shadow pseudo element
+ kShadowDeepAsDescendant, // /deep/ as an alias for descendant
kochi 2017/05/09 14:29:38 nit: moving this next to kShadowDeep?
hayato 2017/05/10 06:57:04 Done
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&);

Powered by Google App Engine
This is Rietveld 408576698