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 |