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 31aabc718b704256c7345ed3e26bcc5624004a43..d19dcf22d8627c08caa338c8745c277b04e4d967 100644 |
--- a/third_party/WebKit/Source/core/dom/ShadowTreeStyleSheetCollection.cpp |
+++ b/third_party/WebKit/Source/core/dom/ShadowTreeStyleSheetCollection.cpp |
@@ -51,15 +51,12 @@ void ShadowTreeStyleSheetCollection::collectStyleSheets(StyleEngine& engine, Sty |
StyleSheetCandidate candidate(*n); |
DCHECK(!candidate.isXSL()); |
- if (!candidate.isCSSStyle()) |
- continue; |
- |
StyleSheet* sheet = candidate.sheet(); |
if (!sheet) |
continue; |
collection.appendSheetForList(sheet); |
- if (candidate.canBeActivated(nullAtom)) |
+ if (candidate.canBeActivated(engine.preferredStylesheetSetName())) |
collection.appendActiveStyleSheet(toCSSStyleSheet(sheet)); |
} |
} |