Index: Source/core/dom/TreeScopeStyleSheetCollection.cpp |
diff --git a/Source/core/dom/TreeScopeStyleSheetCollection.cpp b/Source/core/dom/TreeScopeStyleSheetCollection.cpp |
index b0a0e3ff553b0194a575d7529277bcb602901ec9..8b068389d51c4468a3f3f8db93f26d2423c406eb 100644 |
--- a/Source/core/dom/TreeScopeStyleSheetCollection.cpp |
+++ b/Source/core/dom/TreeScopeStyleSheetCollection.cpp |
@@ -158,10 +158,10 @@ void TreeScopeStyleSheetCollection::analyzeStyleSheetChange(StyleResolverUpdateM |
// If we are already parsing the body and so may have significant amount of elements, put some effort into trying to avoid style recalcs. |
if (!document().body() || document().hasNodesWithPlaceholderStyle()) |
return; |
- StyleSheetInvalidationAnalysis invalidationAnalysis(addedSheets); |
+ StyleSheetInvalidationAnalysis invalidationAnalysis(*m_treeScope, addedSheets); |
if (invalidationAnalysis.dirtiesAllStyle()) |
return; |
- invalidationAnalysis.invalidateStyle(document()); |
+ invalidationAnalysis.invalidateStyle(); |
change.requiresFullStyleRecalc = false; |
return; |
} |