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 2ffe72b632cb27050fec4286cc4342278e7971e8..c5335b0e526a072c5e5e452d38a894ecaf2bd856 100644 |
--- a/third_party/WebKit/Source/core/dom/StyleSheetCandidate.cpp |
+++ b/third_party/WebKit/Source/core/dom/StyleSheetCandidate.cpp |
@@ -88,8 +88,10 @@ bool StyleSheetCandidate::canBeActivated(const String& currentPreferrableName) c |
if (!sheet || sheet->disabled() || !sheet->isCSSStyleSheet()) |
return false; |
- if (sheet->ownerNode() && sheet->ownerNode()->isInShadowTree()) |
- return true; |
+ if (sheet->ownerNode() && sheet->ownerNode()->isInShadowTree()) { |
+ if (isCSSStyle() || (isHTMLLink() && !isImport() && !isAlternate())) |
+ return true; |
+ } |
rune
2016/08/01 09:22:15
I think I would be leaning towards a behavior wher
|
const AtomicString& title = this->title(); |
if (!isEnabledViaScript() && !title.isEmpty() && title != currentPreferrableName) |