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

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

Issue 85693009: Get rid of Reset and ResetStyleResolverAndFontSelector. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 1 month 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: Source/core/dom/StyleEngine.cpp
diff --git a/Source/core/dom/StyleEngine.cpp b/Source/core/dom/StyleEngine.cpp
index 8a1d0c8ed93c83fc2d6a3389d92582a982c4fad5..a5065dea6320f7e0488cf0808b42ddd810a55036 100644
--- a/Source/core/dom/StyleEngine.cpp
+++ b/Source/core/dom/StyleEngine.cpp
@@ -347,7 +347,8 @@ bool StyleEngine::updateActiveStyleSheets(StyleResolverUpdateMode updateMode)
ASSERT(treeScope != m_document);
ShadowTreeStyleSheetCollection* collection = static_cast<ShadowTreeStyleSheetCollection*>(styleSheetCollectionFor(*treeScope));
ASSERT(collection);
- collection->updateActiveStyleSheets(this, updateMode);
+ if (collection->updateActiveStyleSheets(this, updateMode))
+ toShadowRoot(treeScope->rootNode())->host()->setNeedsStyleRecalc();
if (!collection->hasStyleSheetCandidateNodes())
treeScopesRemoved.add(treeScope);
}

Powered by Google App Engine
This is Rietveld 408576698