Index: third_party/WebKit/Source/core/dom/ShadowTreeStyleSheetCollection.cpp |
diff --git a/third_party/WebKit/Source/core/dom/ShadowTreeStyleSheetCollection.cpp b/third_party/WebKit/Source/core/dom/ShadowTreeStyleSheetCollection.cpp |
index a354052915f05fb745fbbe87ea23e658cdde1edb..c1ca1ac43f8731ced1baa91bd0cc81def73ec286 100644 |
--- a/third_party/WebKit/Source/core/dom/ShadowTreeStyleSheetCollection.cpp |
+++ b/third_party/WebKit/Source/core/dom/ShadowTreeStyleSheetCollection.cpp |
@@ -57,14 +57,8 @@ void ShadowTreeStyleSheetCollection::collectStyleSheets(StyleEngine& engine, Sty |
if (!sheet) |
continue; |
- // FIXME: clarify how PREFERRED or ALTERNATE works in shadow trees. |
- // Should we set preferred/selected stylesheets name in shadow trees and |
- // use the name in document? |
- if (candidate.hasPreferrableName(engine.preferredStylesheetSetName())) |
- engine.selectStylesheetSetName(candidate.title()); |
- |
collection.appendSheetForList(sheet); |
- if (candidate.canBeActivated(engine.preferredStylesheetSetName())) |
+ if (candidate.canBeActivated(nullAtom)) |
collection.appendActiveStyleSheet(toCSSStyleSheet(sheet)); |
} |
} |