Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(342)

Unified Diff: Source/core/dom/Node.cpp

Issue 53683007: Have SelectorQuery API take rootNode by reference (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/dom/Element.cpp ('k') | Source/core/dom/SelectorQuery.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/Node.cpp
diff --git a/Source/core/dom/Node.cpp b/Source/core/dom/Node.cpp
index 89f80b54a0abb8e03fe2d50d433194f6fae29cd6..fa662a127c967bd3003738f2fd041e4df16d3a95 100644
--- a/Source/core/dom/Node.cpp
+++ b/Source/core/dom/Node.cpp
@@ -1249,7 +1249,7 @@ PassRefPtr<Element> Node::querySelector(const AtomicString& selectors, Exception
SelectorQuery* selectorQuery = document().selectorQueryCache().add(selectors, document(), es);
if (!selectorQuery)
return 0;
- return selectorQuery->queryFirst(this);
+ return selectorQuery->queryFirst(*this);
}
PassRefPtr<NodeList> Node::querySelectorAll(const AtomicString& selectors, ExceptionState& es)
@@ -1262,7 +1262,7 @@ PassRefPtr<NodeList> Node::querySelectorAll(const AtomicString& selectors, Excep
SelectorQuery* selectorQuery = document().selectorQueryCache().add(selectors, document(), es);
if (!selectorQuery)
return 0;
- return selectorQuery->queryAll(this);
+ return selectorQuery->queryAll(*this);
}
Document* Node::ownerDocument() const
« no previous file with comments | « Source/core/dom/Element.cpp ('k') | Source/core/dom/SelectorQuery.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698