| 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 8de17ce840b43fadb7ba5b27f94f99485cfc4383..028b48bccd0f718544382728f435bf662eb1a3a8 100644
|
| --- a/third_party/WebKit/Source/core/dom/DocumentStyleSheetCollection.cpp
|
| +++ b/third_party/WebKit/Source/core/dom/DocumentStyleSheetCollection.cpp
|
| @@ -62,8 +62,8 @@ void DocumentStyleSheetCollection::collectStyleSheetsFromCandidates(StyleEngine&
|
|
|
| if (candidate.isEnabledAndLoading()) {
|
| // it is loading but we should still decide which style sheet set to use
|
| - if (candidate.hasPreferrableName(engine.preferredStylesheetSetName()))
|
| - engine.selectStylesheetSetName(candidate.title());
|
| + if (candidate.hasPreferrableName())
|
| + engine.setPreferredStylesheetSetNameIfNotSet(candidate.title());
|
| continue;
|
| }
|
|
|
| @@ -71,8 +71,8 @@ void DocumentStyleSheetCollection::collectStyleSheetsFromCandidates(StyleEngine&
|
| if (!sheet)
|
| continue;
|
|
|
| - if (candidate.hasPreferrableName(engine.preferredStylesheetSetName()))
|
| - engine.selectStylesheetSetName(candidate.title());
|
| + if (candidate.hasPreferrableName())
|
| + engine.setPreferredStylesheetSetNameIfNotSet(candidate.title());
|
| collector.appendSheetForList(sheet);
|
| if (candidate.canBeActivated(engine.preferredStylesheetSetName()))
|
| collector.appendActiveStyleSheet(toCSSStyleSheet(sheet));
|
|
|