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

Unified Diff: third_party/WebKit/Source/core/css/ActiveStyleSheets.cpp

Issue 2456753003: Use StyleEngine::resetAuthorStyle instead of clearScopedStyleResolver. (Closed)
Patch Set: Rebased 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 | third_party/WebKit/Source/core/css/ActiveStyleSheetsTest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/css/ActiveStyleSheets.cpp
diff --git a/third_party/WebKit/Source/core/css/ActiveStyleSheets.cpp b/third_party/WebKit/Source/core/css/ActiveStyleSheets.cpp
index c0ccd2df004ef62c3731a8d4e12dc3984d87b486..271359d1c38166960c6ce78a2135b79d86e6b21a 100644
--- a/third_party/WebKit/Source/core/css/ActiveStyleSheets.cpp
+++ b/third_party/WebKit/Source/core/css/ActiveStyleSheets.cpp
@@ -156,7 +156,7 @@ void applyRuleSetChanges(StyleEngine& engine,
// TreeScope.
if (treeScope.scopedStyleResolver()) {
if (newStyleSheets.isEmpty())
- treeScope.clearScopedStyleResolver();
+ engine.resetAuthorStyle(treeScope);
else if (change == ActiveSheetsAppended)
appendStartIndex = oldStyleSheets.size();
else
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/css/ActiveStyleSheetsTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698