Index: Source/core/dom/NodeIterator.cpp |
diff --git a/Source/core/dom/NodeIterator.cpp b/Source/core/dom/NodeIterator.cpp |
index ddf5d0c16b4d5d703faf2d1f802cc811d781fcb3..35c912fe65a5aa2cfc48d4d211dca7f5362ad158 100644 |
--- a/Source/core/dom/NodeIterator.cpp |
+++ b/Source/core/dom/NodeIterator.cpp |
@@ -25,7 +25,6 @@ |
#include "config.h" |
#include "core/dom/NodeIterator.h" |
-#include "bindings/v8/ExceptionMessages.h" |
#include "bindings/v8/ExceptionState.h" |
#include "bindings/v8/ScriptState.h" |
#include "core/dom/Document.h" |
@@ -90,7 +89,7 @@ NodeIterator::~NodeIterator() |
PassRefPtr<Node> NodeIterator::nextNode(ScriptState* state, ExceptionState& exceptionState) |
{ |
if (m_detached) { |
- exceptionState.throwDOMException(InvalidStateError, ExceptionMessages::failedToExecute("nextNode", "NodeIterator", "The iterator is detached.")); |
+ exceptionState.throwDOMException(InvalidStateError, "The iterator is detached."); |
return 0; |
} |
@@ -119,7 +118,7 @@ PassRefPtr<Node> NodeIterator::nextNode(ScriptState* state, ExceptionState& exce |
PassRefPtr<Node> NodeIterator::previousNode(ScriptState* state, ExceptionState& exceptionState) |
{ |
if (m_detached) { |
- exceptionState.throwDOMException(InvalidStateError, ExceptionMessages::failedToExecute("previousNode", "NodeIterator", "The iterator is detached.")); |
+ exceptionState.throwDOMException(InvalidStateError, "The iterator is detached."); |
return 0; |
} |