| Index: Source/core/xml/XPathExpression.cpp
|
| diff --git a/Source/core/xml/XPathExpression.cpp b/Source/core/xml/XPathExpression.cpp
|
| index ab1cca46455f191dd399f43ccae77344260a5712..6025274a49f9705b905739f6cb9ed9bda3a4b70d 100644
|
| --- a/Source/core/xml/XPathExpression.cpp
|
| +++ b/Source/core/xml/XPathExpression.cpp
|
| @@ -63,13 +63,8 @@ DEFINE_TRACE(XPathExpression)
|
| visitor->trace(m_topExpression);
|
| }
|
|
|
| -PassRefPtrWillBeRawPtr<XPathResult> XPathExpression::evaluate(Node* contextNode, unsigned short type, XPathResult*, ExceptionState& exceptionState)
|
| +PassRefPtrWillBeRawPtr<XPathResult> XPathExpression::evaluate(Node* contextNode, unsigned short type, const ScriptValue&, ExceptionState& exceptionState)
|
| {
|
| - if (!contextNode) {
|
| - exceptionState.throwDOMException(NotSupportedError, "The context node provided is null.");
|
| - return nullptr;
|
| - }
|
| -
|
| if (!isValidContextNode(contextNode)) {
|
| exceptionState.throwDOMException(NotSupportedError, "The node provided is '" + contextNode->nodeName() + "', which is not a valid context node type.");
|
| return nullptr;
|
|
|