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

Unified Diff: third_party/WebKit/Source/core/dom/StyleSheetCollection.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/StyleSheetCollection.cpp
diff --git a/third_party/WebKit/Source/core/dom/StyleSheetCollection.cpp b/third_party/WebKit/Source/core/dom/StyleSheetCollection.cpp
index bd7a515a8c719f868d9776185067185b229a8f41..286777389f724c53aeea8bfd21ba9cec05fb17ba 100644
--- a/third_party/WebKit/Source/core/dom/StyleSheetCollection.cpp
+++ b/third_party/WebKit/Source/core/dom/StyleSheetCollection.cpp
@@ -44,13 +44,13 @@ void StyleSheetCollection::Swap(StyleSheetCollection& other) {
::blink::swap(style_sheets_for_style_sheet_list_,
other.style_sheets_for_style_sheet_list_, this, &other);
active_author_style_sheets_.swap(other.active_author_style_sheets_);
+ sheet_list_dirty_ = false;
}
void StyleSheetCollection::SwapSheetsForSheetList(
HeapVector<Member<StyleSheet>>& sheets) {
- // Only called for collection of HTML Imports that never has active sheets.
- DCHECK(active_author_style_sheets_.IsEmpty());
::blink::swap(style_sheets_for_style_sheet_list_, sheets, this);
+ sheet_list_dirty_ = false;
}
void StyleSheetCollection::AppendActiveStyleSheet(

Powered by Google App Engine
This is Rietveld 408576698