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

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

Issue 1851743002: Simplify Supplementables post Oilpan. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix component build Created 4 years, 9 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.cpp
diff --git a/third_party/WebKit/Source/core/xml/DocumentXPathEvaluator.cpp b/third_party/WebKit/Source/core/xml/DocumentXPathEvaluator.cpp
index b2bec9d7be47723daf33d175ad7cd8502d505185..5884994052814d122818dab8f9a212e677d0efaf 100644
--- a/third_party/WebKit/Source/core/xml/DocumentXPathEvaluator.cpp
+++ b/third_party/WebKit/Source/core/xml/DocumentXPathEvaluator.cpp
@@ -35,17 +35,17 @@ DocumentXPathEvaluator::DocumentXPathEvaluator()
{
}
-DocumentXPathEvaluator& DocumentXPathEvaluator::from(HeapSupplementable<Document>& document)
+DocumentXPathEvaluator& DocumentXPathEvaluator::from(Supplementable<Document>& document)
{
- DocumentXPathEvaluator* cache = static_cast<DocumentXPathEvaluator*>(HeapSupplement<Document>::from(document, supplementName()));
+ DocumentXPathEvaluator* cache = static_cast<DocumentXPathEvaluator*>(Supplement<Document>::from(document, supplementName()));
if (!cache) {
- cache = new DocumentXPathEvaluator();
- HeapSupplement<Document>::provideTo(document, supplementName(), adoptPtrWillBeNoop(cache));
+ cache = new DocumentXPathEvaluator;
+ Supplement<Document>::provideTo(document, supplementName(), cache);
}
return *cache;
}
-XPathExpression* DocumentXPathEvaluator::createExpression(HeapSupplementable<Document>& document, const String& expression, XPathNSResolver* resolver, ExceptionState& exceptionState)
+XPathExpression* DocumentXPathEvaluator::createExpression(Supplementable<Document>& document, const String& expression, XPathNSResolver* resolver, ExceptionState& exceptionState)
{
DocumentXPathEvaluator& suplement = from(document);
if (!suplement.m_xpathEvaluator)
@@ -53,7 +53,7 @@ XPathExpression* DocumentXPathEvaluator::createExpression(HeapSupplementable<Doc
return suplement.m_xpathEvaluator->createExpression(expression, resolver, exceptionState);
}
-XPathNSResolver* DocumentXPathEvaluator::createNSResolver(HeapSupplementable<Document>& document, Node* nodeResolver)
+XPathNSResolver* DocumentXPathEvaluator::createNSResolver(Supplementable<Document>& document, Node* nodeResolver)
{
DocumentXPathEvaluator& suplement = from(document);
if (!suplement.m_xpathEvaluator)
@@ -61,7 +61,7 @@ XPathNSResolver* DocumentXPathEvaluator::createNSResolver(HeapSupplementable<Doc
return suplement.m_xpathEvaluator->createNSResolver(nodeResolver);
}
-XPathResult* DocumentXPathEvaluator::evaluate(HeapSupplementable<Document>& document, const String& expression,
+XPathResult* DocumentXPathEvaluator::evaluate(Supplementable<Document>& document, const String& expression,
Node* contextNode, XPathNSResolver* resolver, unsigned short type,
const ScriptValue&, ExceptionState& exceptionState)
{
@@ -74,7 +74,7 @@ XPathResult* DocumentXPathEvaluator::evaluate(HeapSupplementable<Document>& docu
DEFINE_TRACE(DocumentXPathEvaluator)
{
visitor->trace(m_xpathEvaluator);
- HeapSupplement<Document>::trace(visitor);
+ Supplement<Document>::trace(visitor);
}
} // namespace blink
« no previous file with comments | « third_party/WebKit/Source/core/xml/DocumentXPathEvaluator.h ('k') | third_party/WebKit/Source/core/xml/DocumentXSLT.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698