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

Unified Diff: third_party/WebKit/Source/core/dom/StyleEngine.h

Issue 1803933002: Use correct cascading order for Shadow DOM v1 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix enum Created 4 years, 9 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
« no previous file with comments | « third_party/WebKit/Source/core/dom/Element.cpp ('k') | third_party/WebKit/Source/core/dom/StyleEngine.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/dom/StyleEngine.h
diff --git a/third_party/WebKit/Source/core/dom/StyleEngine.h b/third_party/WebKit/Source/core/dom/StyleEngine.h
index 144b8f9084b2b10f8726f78f39e8552eda8aac60..35fd7e809d81253bb2ea4973037093986f157c66 100644
--- a/third_party/WebKit/Source/core/dom/StyleEngine.h
+++ b/third_party/WebKit/Source/core/dom/StyleEngine.h
@@ -55,6 +55,12 @@ class StyleRuleFontFace;
class StyleSheet;
class StyleSheetContents;
+enum ShadowCascadeOrder {
+ ShadowCascadeNone,
+ ShadowCascadeV0,
+ ShadowCascadeV1
+};
+
class CORE_EXPORT StyleEngine final : public NoBaseWillBeGarbageCollectedFinalized<StyleEngine>, public CSSFontSelectorClient {
USING_FAST_MALLOC_WILL_BE_REMOVED(StyleEngine);
WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(StyleEngine);
@@ -178,6 +184,9 @@ public:
StyleResolverStats* stats() { return m_styleResolverStats.get(); }
void setStatsEnabled(bool);
+ ShadowCascadeOrder shadowCascadeOrder() const { return m_shadowCascadeOrder; }
+ void setShadowCascadeOrder(ShadowCascadeOrder);
+
DECLARE_VIRTUAL_TRACE();
private:
@@ -252,6 +261,9 @@ private:
bool m_ignorePendingStylesheets = false;
bool m_didCalculateResolver = false;
+
+ ShadowCascadeOrder m_shadowCascadeOrder = ShadowCascadeNone;
+
OwnPtrWillBeMember<StyleResolver> m_resolver;
StyleInvalidator m_styleInvalidator;
« no previous file with comments | « third_party/WebKit/Source/core/dom/Element.cpp ('k') | third_party/WebKit/Source/core/dom/StyleEngine.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698