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

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 for review comment #16 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..b7be7152b0f3a43b7c699d911c3fb25aa59736b3 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 = 0,
rune 2016/03/22 08:57:07 Enums start at 0 if not specified, so the explicit
kochi 2016/03/22 09:36:26 Done.
+ 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