Index: Source/core/dom/SelectorQuery.cpp |
diff --git a/Source/core/dom/SelectorQuery.cpp b/Source/core/dom/SelectorQuery.cpp |
index 520228ffdabafe1eadfcadcfc5142f0b4d8a7d46..e368fb0bc6d7402464930868b09a3e88ea90dc92 100644 |
--- a/Source/core/dom/SelectorQuery.cpp |
+++ b/Source/core/dom/SelectorQuery.cpp |
@@ -148,7 +148,7 @@ inline bool SelectorDataList::selectorMatches(const SelectorData& selectorData, |
return selectorCheckerFastPath.matches(); |
} |
- SelectorChecker selectorChecker(&element->document(), SelectorChecker::QueryingRules); |
+ SelectorChecker selectorChecker(element->document(), SelectorChecker::QueryingRules); |
SelectorChecker::SelectorCheckingContext selectorCheckingContext(selectorData.selector, element, SelectorChecker::VisitedMatchDisabled); |
selectorCheckingContext.behaviorAtBoundary = SelectorChecker::StaysWithinTreeScope; |
selectorCheckingContext.scope = !rootNode->isDocumentNode() && rootNode->isContainerNode() ? toContainerNode(rootNode) : 0; |