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; |
}; |