| Index: third_party/WebKit/Source/core/dom/TreeScopeStyleSheetCollection.cpp
|
| diff --git a/third_party/WebKit/Source/core/dom/TreeScopeStyleSheetCollection.cpp b/third_party/WebKit/Source/core/dom/TreeScopeStyleSheetCollection.cpp
|
| index d1a185bbf8b3af07f744df0a7516d64a3bb4c7c7..b21de9d9677862c812611f8ea61e54d92325d852 100644
|
| --- a/third_party/WebKit/Source/core/dom/TreeScopeStyleSheetCollection.cpp
|
| +++ b/third_party/WebKit/Source/core/dom/TreeScopeStyleSheetCollection.cpp
|
| @@ -46,7 +46,7 @@ TreeScopeStyleSheetCollection::TreeScopeStyleSheetCollection(TreeScope& treeScop
|
|
|
| void TreeScopeStyleSheetCollection::addStyleSheetCandidateNode(Node* node)
|
| {
|
| - if (!node->inShadowIncludingDocument())
|
| + if (!node->isConnected())
|
| return;
|
|
|
| m_styleSheetCandidateNodes.add(node);
|
|
|