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

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 comments 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
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 b44b36431bc352be722f4f4a9a2bd0b7447953e5..5dff0e4339ed1f68d0c174ac594353ca62e2209c 100644
--- a/third_party/WebKit/Source/core/dom/StyleEngine.h
+++ b/third_party/WebKit/Source/core/dom/StyleEngine.h
@@ -177,6 +177,9 @@ public:
StyleResolverStats* stats() { return m_styleResolverStats.get(); }
void setStatsEnabled(bool);
+ bool useCascadeOrderForShadowDOMV1() const { return m_useCascadeOrderForShadowDOMV1; }
+ void setUseCascadeOrderForShadowDOMV1() { m_useCascadeOrderForShadowDOMV1 = true; }
rune 2016/03/18 12:04:12 We are not recalculating style setting this flag,
kochi 2016/03/22 08:16:59 Very good point. I've added the enum and set style
+
DECLARE_VIRTUAL_TRACE();
private:
@@ -251,6 +254,9 @@ private:
bool m_ignorePendingStylesheets = false;
bool m_didCalculateResolver = false;
+
+ bool m_useCascadeOrderForShadowDOMV1 = false;
+
OwnPtrWillBeMember<StyleResolver> m_resolver;
StyleInvalidator m_styleInvalidator;

Powered by Google App Engine
This is Rietveld 408576698