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

Unified Diff: third_party/WebKit/Source/core/dom/Element.cpp

Issue 1869773004: Move shadowCascadeOrder to Document from StyleEngine (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove ASSERT and insert DCHECK_NE Created 4 years, 8 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/Document.cpp ('k') | third_party/WebKit/Source/core/dom/StyleEngine.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/dom/Element.cpp
diff --git a/third_party/WebKit/Source/core/dom/Element.cpp b/third_party/WebKit/Source/core/dom/Element.cpp
index f7134fd8dc86fe9274d0fc8a430b9c933fc41c9d..1035b9254f4bf5d26b37ccc51c9e43a0ee187bf3 100644
--- a/third_party/WebKit/Source/core/dom/Element.cpp
+++ b/third_party/WebKit/Source/core/dom/Element.cpp
@@ -1908,7 +1908,7 @@ RawPtr<ShadowRoot> Element::createShadowRoot(const ScriptState* scriptState, Exc
return nullptr;
}
}
- document().styleEngine().setShadowCascadeOrder(ShadowCascadeOrder::ShadowCascadeV0);
+ document().setShadowCascadeOrder(ShadowCascadeOrder::ShadowCascadeV0);
return createShadowRootInternal(ShadowRootType::V0, exceptionState);
}
@@ -1948,7 +1948,7 @@ RawPtr<ShadowRoot> Element::attachShadow(const ScriptState* scriptState, const S
return nullptr;
}
- document().styleEngine().setShadowCascadeOrder(ShadowCascadeOrder::ShadowCascadeV1);
+ document().setShadowCascadeOrder(ShadowCascadeOrder::ShadowCascadeV1);
ShadowRootType type = ShadowRootType::V0;
if (shadowRootInitDict.hasMode())
« no previous file with comments | « third_party/WebKit/Source/core/dom/Document.cpp ('k') | third_party/WebKit/Source/core/dom/StyleEngine.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698