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

Unified Diff: Source/core/xml/XPathExpression.cpp

Issue 698923002: Enable Oilpan for core/xml/ (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Non-Oilpan fixes Created 6 years, 1 month 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/xml/XPathExpression.h ('k') | Source/core/xml/XPathExpression.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/xml/XPathExpression.cpp
diff --git a/Source/core/xml/XPathExpression.cpp b/Source/core/xml/XPathExpression.cpp
index 0e3ea7f94e897ae68858529bde670f83f8b80ce7..a55847825196f04fc0b342fdeacc6548e5be0b53 100644
--- a/Source/core/xml/XPathExpression.cpp
+++ b/Source/core/xml/XPathExpression.cpp
@@ -40,22 +40,20 @@ namespace blink {
using namespace XPath;
-DEFINE_EMPTY_DESTRUCTOR_WILL_BE_REMOVED(XPathExpression);
-
XPathExpression::XPathExpression()
{
}
-PassRefPtrWillBeRawPtr<XPathExpression> XPathExpression::createExpression(const String& expression, PassRefPtrWillBeRawPtr<XPathNSResolver> resolver, ExceptionState& exceptionState)
+XPathExpression* XPathExpression::createExpression(const String& expression, XPathNSResolver* resolver, ExceptionState& exceptionState)
{
- RefPtrWillBeRawPtr<XPathExpression> expr = XPathExpression::create();
+ XPathExpression* expr = XPathExpression::create();
Parser parser;
expr->m_topExpression = parser.parseStatement(expression, resolver, exceptionState);
if (!expr->m_topExpression)
return nullptr;
- return expr.release();
+ return expr;
}
void XPathExpression::trace(Visitor* visitor)
@@ -63,7 +61,7 @@ void XPathExpression::trace(Visitor* visitor)
visitor->trace(m_topExpression);
}
-PassRefPtrWillBeRawPtr<XPathResult> XPathExpression::evaluate(Node* contextNode, unsigned short type, XPathResult*, ExceptionState& exceptionState)
+XPathResult* XPathExpression::evaluate(Node* contextNode, unsigned short type, XPathResult*, ExceptionState& exceptionState)
{
if (!contextNode) {
exceptionState.throwDOMException(NotSupportedError, "The context node provided is null.");
@@ -76,7 +74,7 @@ PassRefPtrWillBeRawPtr<XPathResult> XPathExpression::evaluate(Node* contextNode,
}
EvaluationContext evaluationContext(*contextNode);
- RefPtrWillBeRawPtr<XPathResult> result = XPathResult::create(evaluationContext, m_topExpression->evaluate(evaluationContext));
+ XPathResult* result = XPathResult::create(evaluationContext, m_topExpression->evaluate(evaluationContext));
if (evaluationContext.hadTypeConversionError) {
// It is not specified what to do if type conversion fails while evaluating an expression.
@@ -93,4 +91,4 @@ PassRefPtrWillBeRawPtr<XPathResult> XPathExpression::evaluate(Node* contextNode,
return result;
}
-}
+} // namespace blink
« no previous file with comments | « Source/core/xml/XPathExpression.h ('k') | Source/core/xml/XPathExpression.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698