Index: third_party/WebKit/Source/core/dom/StyleSheetCandidate.cpp |
diff --git a/third_party/WebKit/Source/core/dom/StyleSheetCandidate.cpp b/third_party/WebKit/Source/core/dom/StyleSheetCandidate.cpp |
index 3dc0e62a4dd77e6f736a51f031f6e74255e18372..1ac86d88710a704ea6684139e02b5c9ef3f5daef 100644 |
--- a/third_party/WebKit/Source/core/dom/StyleSheetCandidate.cpp |
+++ b/third_party/WebKit/Source/core/dom/StyleSheetCandidate.cpp |
@@ -93,6 +93,10 @@ bool StyleSheetCandidate::canBeActivated(const String& currentPreferrableName) c |
StyleSheet* sheet = this->sheet(); |
if (!sheet || sheet->disabled() || !sheet->isCSSStyleSheet()) |
return false; |
+ |
+ if (sheet->ownerNode() && sheet->ownerNode()->isInShadowTree()) |
+ return true; |
+ |
const AtomicString& title = this->title(); |
if (!isEnabledViaScript() && !title.isEmpty() && title != currentPreferrableName) |
return false; |