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

Unified Diff: third_party/WebKit/Source/core/dom/TreeScopeStyleSheetCollection.cpp

Issue 2884993002: Don't trigger full active style update on styleSheets access. (Closed)
Patch Set: Not clearing document_scope_dirty_ flag in import styleSheets anymore. Created 3 years, 7 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
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);

Powered by Google App Engine
This is Rietveld 408576698