| Index: Source/core/xml/XPathExpression.cpp
|
| diff --git a/Source/core/xml/XPathExpression.cpp b/Source/core/xml/XPathExpression.cpp
|
| index a89d203a3da55b937541d0965990055f3c13b52b..ae2d7e1a56daa9ff93712ce7a57c968c3e385fc8 100644
|
| --- a/Source/core/xml/XPathExpression.cpp
|
| +++ b/Source/core/xml/XPathExpression.cpp
|
| @@ -27,7 +27,6 @@
|
| #include "config.h"
|
| #include "core/xml/XPathExpression.h"
|
|
|
| -#include "bindings/v8/ExceptionMessages.h"
|
| #include "bindings/v8/ExceptionState.h"
|
| #include "core/dom/ExceptionCode.h"
|
| #include "core/xml/XPathExpressionNode.h"
|
| @@ -61,12 +60,12 @@ XPathExpression::~XPathExpression()
|
| PassRefPtr<XPathResult> XPathExpression::evaluate(Node* contextNode, unsigned short type, XPathResult*, ExceptionState& exceptionState)
|
| {
|
| if (!contextNode) {
|
| - exceptionState.throwDOMException(NotSupportedError, ExceptionMessages::failedToExecute("evaluate", "XPathExpression", "The context node provided is null."));
|
| + exceptionState.throwDOMException(NotSupportedError, "The context node provided is null.");
|
| return 0;
|
| }
|
|
|
| if (!isValidContextNode(contextNode)) {
|
| - exceptionState.throwDOMException(NotSupportedError, ExceptionMessages::failedToExecute("evaluate", "XPathExpression", "The node provided is '" + contextNode->nodeName() + "', which is not a valid context node type."));
|
| + exceptionState.throwDOMException(NotSupportedError, "The node provided is '" + contextNode->nodeName() + "', which is not a valid context node type.");
|
| return 0;
|
| }
|
|
|
| @@ -80,7 +79,7 @@ PassRefPtr<XPathResult> XPathExpression::evaluate(Node* contextNode, unsigned sh
|
|
|
| if (evaluationContext.hadTypeConversionError) {
|
| // It is not specified what to do if type conversion fails while evaluating an expression.
|
| - exceptionState.throwDOMException(SyntaxError, ExceptionMessages::failedToExecute("evaluate", "XPathExpression", "Type conversion failed while evaluating the expression."));
|
| + exceptionState.throwDOMException(SyntaxError, "Type conversion failed while evaluating the expression.");
|
| return 0;
|
| }
|
|
|
|
|