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 |