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

Unified Diff: third_party/WebKit/Source/core/dom/StyleSheetCollection.h

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/StyleSheetCollection.h
diff --git a/third_party/WebKit/Source/core/dom/StyleSheetCollection.h b/third_party/WebKit/Source/core/dom/StyleSheetCollection.h
index 552fab95b8706f51231c69b4f87e7da52d26bb89..2ae11bf51806652151c4ea4eca76802d5d41b3b2 100644
--- a/third_party/WebKit/Source/core/dom/StyleSheetCollection.h
+++ b/third_party/WebKit/Source/core/dom/StyleSheetCollection.h
@@ -65,6 +65,7 @@ class CORE_EXPORT StyleSheetCollection
void SwapSheetsForSheetList(HeapVector<Member<StyleSheet>>&);
void AppendActiveStyleSheet(const ActiveStyleSheet&);
void AppendSheetForList(StyleSheet*);
+ void MarkSheetListDirty() { sheet_list_dirty_ = true; }
DECLARE_VIRTUAL_TRACE();
DECLARE_VIRTUAL_TRACE_WRAPPERS();
@@ -76,6 +77,7 @@ class CORE_EXPORT StyleSheetCollection
HeapVector<TraceWrapperMember<StyleSheet>> style_sheets_for_style_sheet_list_;
ActiveStyleSheetVector active_author_style_sheets_;
+ bool sheet_list_dirty_ = true;
};
} // namespace blink
« no previous file with comments | « third_party/WebKit/Source/core/dom/StyleEngineTest.cpp ('k') | third_party/WebKit/Source/core/dom/StyleSheetCollection.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698