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

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

Issue 99083002: WIP: Migrate generated bindings to new ExceptionState constructor. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase. Created 7 years 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/XPathEvaluator.cpp ('k') | Source/core/xml/XPathParser.cpp » ('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 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;
}
« no previous file with comments | « Source/core/xml/XPathEvaluator.cpp ('k') | Source/core/xml/XPathParser.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698