summaryrefslogtreecommitdiff
path: root/chromium/third_party/blink/renderer/core/xml/xpath_expression.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/third_party/blink/renderer/core/xml/xpath_expression.cc')
-rw-r--r--chromium/third_party/blink/renderer/core/xml/xpath_expression.cc11
1 files changed, 5 insertions, 6 deletions
diff --git a/chromium/third_party/blink/renderer/core/xml/xpath_expression.cc b/chromium/third_party/blink/renderer/core/xml/xpath_expression.cc
index 68054d6e431..7476499914a 100644
--- a/chromium/third_party/blink/renderer/core/xml/xpath_expression.cc
+++ b/chromium/third_party/blink/renderer/core/xml/xpath_expression.cc
@@ -26,13 +26,12 @@
#include "third_party/blink/renderer/core/xml/xpath_expression.h"
-#include "third_party/blink/renderer/bindings/core/v8/exception_state.h"
-#include "third_party/blink/renderer/core/dom/exception_code.h"
#include "third_party/blink/renderer/core/xml/xpath_expression_node.h"
#include "third_party/blink/renderer/core/xml/xpath_ns_resolver.h"
#include "third_party/blink/renderer/core/xml/xpath_parser.h"
#include "third_party/blink/renderer/core/xml/xpath_result.h"
#include "third_party/blink/renderer/core/xml/xpath_util.h"
+#include "third_party/blink/renderer/platform/bindings/exception_state.h"
#include "third_party/blink/renderer/platform/wtf/text/wtf_string.h"
namespace blink {
@@ -67,9 +66,9 @@ XPathResult* XPathExpression::evaluate(Node* context_node,
ExceptionState& exception_state) {
if (!IsValidContextNode(context_node)) {
exception_state.ThrowDOMException(
- kNotSupportedError, "The node provided is '" +
- context_node->nodeName() +
- "', which is not a valid context node type.");
+ DOMExceptionCode::kNotSupportedError,
+ "The node provided is '" + context_node->nodeName() +
+ "', which is not a valid context node type.");
return nullptr;
}
@@ -81,7 +80,7 @@ XPathResult* XPathExpression::evaluate(Node* context_node,
// It is not specified what to do if type conversion fails while evaluating
// an expression.
exception_state.ThrowDOMException(
- kSyntaxError,
+ DOMExceptionCode::kSyntaxError,
"Type conversion failed while evaluating the expression.");
return nullptr;
}