| 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 ee5af5bc467dbd48a9bac777fc0cf472ce6012ea..7f6f4c129f12e68035c1aca31515e7b298dfa58f 100644
|
| --- a/third_party/WebKit/Source/core/dom/SelectorQuery.cpp
|
| +++ b/third_party/WebKit/Source/core/dom/SelectorQuery.cpp
|
| @@ -225,7 +225,7 @@ inline bool SelectorDataList::canUseFastQuery(const ContainerNode& rootNode) con
|
| return false;
|
| if (rootNode.document().inQuirksMode())
|
| return false;
|
| - if (!rootNode.inDocument())
|
| + if (!rootNode.inShadowIncludingDocument())
|
| return false;
|
| return m_selectors.size() == 1;
|
| }
|
|
|