| Index: third_party/WebKit/Source/core/dom/SelectorQuery.cpp
|
| diff --git a/third_party/WebKit/Source/core/dom/SelectorQuery.cpp b/third_party/WebKit/Source/core/dom/SelectorQuery.cpp
|
| index c739f889ace3acbb4d311a3303a70ce3cb535382..bfc3d433530a2a75167334d1910c34102ddf14d4 100644
|
| --- a/third_party/WebKit/Source/core/dom/SelectorQuery.cpp
|
| +++ b/third_party/WebKit/Source/core/dom/SelectorQuery.cpp
|
| @@ -228,7 +228,7 @@ inline bool SelectorDataList::canUseFastQuery(const ContainerNode& rootNode) con
|
| return false;
|
| if (rootNode.document().inQuirksMode())
|
| return false;
|
| - if (!rootNode.inShadowIncludingDocument())
|
| + if (!rootNode.isConnected())
|
| return false;
|
| return m_selectors.size() == 1;
|
| }
|
|
|