Index: third_party/WebKit/Source/core/dom/TreeScopeStyleSheetCollection.cpp |
diff --git a/third_party/WebKit/Source/core/dom/TreeScopeStyleSheetCollection.cpp b/third_party/WebKit/Source/core/dom/TreeScopeStyleSheetCollection.cpp |
index a562dad86fa54b77d28064b2e85b79ec0e9ab35d..0f22c8735cc85dff050518fa468277de56dbdf7e 100644 |
--- a/third_party/WebKit/Source/core/dom/TreeScopeStyleSheetCollection.cpp |
+++ b/third_party/WebKit/Source/core/dom/TreeScopeStyleSheetCollection.cpp |
@@ -79,7 +79,10 @@ bool TreeScopeStyleSheetCollection::HasStyleSheets() const { |
return false; |
} |
-void TreeScopeStyleSheetCollection::CollectStyleSheetsForList() { |
+void TreeScopeStyleSheetCollection::UpdateStyleSheetList() { |
+ if (!sheet_list_dirty_) |
+ return; |
+ |
HeapVector<Member<StyleSheet>> new_list; |
for (Node* node : style_sheet_candidate_nodes_) { |
StyleSheetCandidate candidate(*node); |