| Index: Source/bindings/core/v8/custom/V8DocumentCustom.cpp
|
| diff --git a/Source/bindings/core/v8/custom/V8DocumentCustom.cpp b/Source/bindings/core/v8/custom/V8DocumentCustom.cpp
|
| index 82f47066f6fcf466c7fce43dd7f240606f898b3d..38b3fe681dbf7a4714fa6a02b49f44f8a9083959 100644
|
| --- a/Source/bindings/core/v8/custom/V8DocumentCustom.cpp
|
| +++ b/Source/bindings/core/v8/custom/V8DocumentCustom.cpp
|
| @@ -67,7 +67,7 @@ void V8Document::evaluateMethodCustom(const v8::FunctionCallbackInfo<v8::Value>&
|
| RefPtrWillBeRawPtr<Node> contextNode = V8Node::toImplWithTypeCheck(info.GetIsolate(), info[1]);
|
|
|
| const int resolverArgumentIndex = 2;
|
| - RefPtrWillBeRawPtr<XPathNSResolver> resolver = toXPathNSResolver(info.GetIsolate(), info[resolverArgumentIndex]);
|
| + XPathNSResolver* resolver = toXPathNSResolver(info.GetIsolate(), info[resolverArgumentIndex]);
|
| if (!resolver && !isUndefinedOrNull(info[resolverArgumentIndex])) {
|
| exceptionState.throwTypeError(ExceptionMessages::argumentNullOrIncorrectType(resolverArgumentIndex + 1, "XPathNSResolver"));
|
| exceptionState.throwIfNeeded();
|
| @@ -75,12 +75,12 @@ void V8Document::evaluateMethodCustom(const v8::FunctionCallbackInfo<v8::Value>&
|
| }
|
|
|
| int type = toInt32(info[3]);
|
| - RefPtrWillBeRawPtr<XPathResult> inResult = V8XPathResult::toImplWithTypeCheck(info.GetIsolate(), info[4]);
|
| - TONATIVE_VOID(RefPtrWillBeRawPtr<XPathResult>, result, DocumentXPathEvaluator::evaluate(*document, expression, contextNode.get(), resolver.release(), type, inResult.get(), exceptionState));
|
| + XPathResult* inResult = V8XPathResult::toImplWithTypeCheck(info.GetIsolate(), info[4]);
|
| + TONATIVE_VOID(XPathResult*, result, DocumentXPathEvaluator::evaluate(*document, expression, contextNode.get(), resolver, type, inResult, exceptionState));
|
| if (exceptionState.throwIfNeeded())
|
| return;
|
|
|
| - v8SetReturnValueFast(info, result.release(), document.get());
|
| + v8SetReturnValueFast(info, result, document.get());
|
| }
|
|
|
| } // namespace blink
|
|
|