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

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

Issue 2452733004: Removed unnecessary rule feature reset when no ScopedStyleResolver. (Closed)
Patch Set: Created 4 years, 2 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/dom/StyleEngine.cpp
diff --git a/third_party/WebKit/Source/core/dom/StyleEngine.cpp b/third_party/WebKit/Source/core/dom/StyleEngine.cpp
index 2c1ab5550ef6c6a909628ea901a1c6758c288845..a7752d5ae67156785da29f1eb4489194e4d9a2ff 100644
--- a/third_party/WebKit/Source/core/dom/StyleEngine.cpp
+++ b/third_party/WebKit/Source/core/dom/StyleEngine.cpp
@@ -381,18 +381,15 @@ void StyleEngine::didRemoveShadowRoot(ShadowRoot* shadowRoot) {
void StyleEngine::shadowRootRemovedFromDocument(ShadowRoot* shadowRoot) {
if (StyleResolver* styleResolver = resolver()) {
- styleResolver->resetRuleFeatures();
-
if (TreeScopeStyleSheetCollection* collection =
styleSheetCollectionFor(*shadowRoot))
styleResolver->removePendingAuthorStyleSheets(
collection->activeAuthorStyleSheets());
}
- shadowRoot->clearScopedStyleResolver();
m_styleSheetCollectionMap.remove(shadowRoot);
m_activeTreeScopes.remove(shadowRoot);
m_dirtyTreeScopes.remove(shadowRoot);
- m_treeBoundaryCrossingScopes.remove(&shadowRoot->rootNode());
+ resetAuthorStyle(*shadowRoot);
}
void StyleEngine::addTreeBoundaryCrossingScope(const TreeScope& treeScope) {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698