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

Unified Diff: third_party/WebKit/Source/core/xml/DocumentXPathEvaluator.h

Issue 2617103002: Use a new Supplement constructor for Supplement<Document> (Part 1) (Closed)
Patch Set: temp Created 3 years, 11 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
Index: third_party/WebKit/Source/core/xml/DocumentXPathEvaluator.h
diff --git a/third_party/WebKit/Source/core/xml/DocumentXPathEvaluator.h b/third_party/WebKit/Source/core/xml/DocumentXPathEvaluator.h
index 093fa7f65b434503aab1f9623520d481a5a1e2a3..60ed54f42a12becf4e0fcf4192a89ca6d68fd796 100644
--- a/third_party/WebKit/Source/core/xml/DocumentXPathEvaluator.h
+++ b/third_party/WebKit/Source/core/xml/DocumentXPathEvaluator.h
@@ -42,15 +42,14 @@ class DocumentXPathEvaluator final
USING_GARBAGE_COLLECTED_MIXIN(DocumentXPathEvaluator);
public:
- static DocumentXPathEvaluator& from(Supplementable<Document>&);
+ static DocumentXPathEvaluator& from(Document&);
- static XPathExpression* createExpression(Supplementable<Document>&,
+ static XPathExpression* createExpression(Document&,
const String& expression,
XPathNSResolver*,
ExceptionState&);
- static XPathNSResolver* createNSResolver(Supplementable<Document>&,
- Node* nodeResolver);
- static XPathResult* evaluate(Supplementable<Document>&,
+ static XPathNSResolver* createNSResolver(Document&, Node* nodeResolver);
+ static XPathResult* evaluate(Document&,
const String& expression,
Node* contextNode,
XPathNSResolver*,
@@ -61,7 +60,7 @@ class DocumentXPathEvaluator final
DECLARE_VIRTUAL_TRACE();
private:
- DocumentXPathEvaluator();
+ explicit DocumentXPathEvaluator(Document&);
static const char* supplementName() { return "DocumentXPathEvaluator"; }

Powered by Google App Engine
This is Rietveld 408576698