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

Unified Diff: Source/core/dom/SelectorQuery.h

Issue 330713003: Update SelectorQuery constructor to adopt CSSSelectorList object (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rename to adopt Created 6 years, 6 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 | « no previous file | Source/core/dom/SelectorQuery.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/SelectorQuery.h
diff --git a/Source/core/dom/SelectorQuery.h b/Source/core/dom/SelectorQuery.h
index 039d9fadfee56a92c1e5aa70c1bbd543a01612e4..06cc801a6e2a07e4ffc17c157c3c9482d74b1874 100644
--- a/Source/core/dom/SelectorQuery.h
+++ b/Source/core/dom/SelectorQuery.h
@@ -88,11 +88,14 @@ class SelectorQuery {
WTF_MAKE_NONCOPYABLE(SelectorQuery);
WTF_MAKE_FAST_ALLOCATED;
public:
- explicit SelectorQuery(const CSSSelectorList&);
+ static PassOwnPtr<SelectorQuery> adopt(CSSSelectorList&);
+
bool matches(Element&) const;
PassRefPtrWillBeRawPtr<NodeList> queryAll(ContainerNode& rootNode) const;
PassRefPtrWillBeRawPtr<Element> queryFirst(ContainerNode& rootNode) const;
private:
+ explicit SelectorQuery(CSSSelectorList&);
+
SelectorDataList m_selectors;
CSSSelectorList m_selectorList;
};
« no previous file with comments | « no previous file | Source/core/dom/SelectorQuery.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698