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

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

Issue 2079303002: Move preferred stylesheet set out of active sheet update. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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/DocumentStyleSheetCollection.cpp
diff --git a/third_party/WebKit/Source/core/dom/DocumentStyleSheetCollection.cpp b/third_party/WebKit/Source/core/dom/DocumentStyleSheetCollection.cpp
index 7558369fd2e0fc9709b130fb0c88d59c9e98bf3b..59f0504680d6c7c4b8d2cc281fe7382075322a83 100644
--- a/third_party/WebKit/Source/core/dom/DocumentStyleSheetCollection.cpp
+++ b/third_party/WebKit/Source/core/dom/DocumentStyleSheetCollection.cpp
@@ -60,19 +60,13 @@ void DocumentStyleSheetCollection::collectStyleSheetsFromCandidates(StyleEngine&
continue;
}
- if (candidate.isEnabledAndLoading()) {
- // it is loading but we should still decide which style sheet set to use
- if (candidate.hasPreferrableName())
- engine.setPreferredStylesheetSetNameIfNotSet(candidate.title());
+ if (candidate.isEnabledAndLoading())
continue;
- }
StyleSheet* sheet = candidate.sheet();
if (!sheet)
continue;
- if (candidate.hasPreferrableName())
- engine.setPreferredStylesheetSetNameIfNotSet(candidate.title());
collector.appendSheetForList(sheet);
if (candidate.canBeActivated(engine.preferredStylesheetSetName()))
collector.appendActiveStyleSheet(toCSSStyleSheet(sheet));

Powered by Google App Engine
This is Rietveld 408576698