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

Unified Diff: Source/core/dom/NodeIteratorBase.cpp

Issue 225783003: Remove ScriptState from NodeIterator, NodeFilter, NodeFilterCondition and TreeWalker (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 9 months 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/dom/NodeIteratorBase.h ('k') | Source/core/dom/TreeWalker.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/NodeIteratorBase.cpp
diff --git a/Source/core/dom/NodeIteratorBase.cpp b/Source/core/dom/NodeIteratorBase.cpp
index aa450fe29c6676d028b4063ebdf73f3fa6389877..db5bf008c23ee9840da69c97da3f4881d99cc33d 100644
--- a/Source/core/dom/NodeIteratorBase.cpp
+++ b/Source/core/dom/NodeIteratorBase.cpp
@@ -25,6 +25,7 @@
#include "config.h"
#include "core/dom/NodeIteratorBase.h"
+#include "bindings/v8/ExceptionState.h"
#include "core/dom/Node.h"
#include "core/dom/NodeFilter.h"
@@ -37,7 +38,7 @@ NodeIteratorBase::NodeIteratorBase(PassRefPtr<Node> rootNode, unsigned whatToSho
{
}
-short NodeIteratorBase::acceptNode(ScriptState* state, Node* node) const
+short NodeIteratorBase::acceptNode(Node* node, ExceptionState& exceptionState) const
{
// The bit twiddling here is done to map DOM node types, which are given as integers from
// 1 through 14, to whatToShow bit masks.
@@ -45,7 +46,7 @@ short NodeIteratorBase::acceptNode(ScriptState* state, Node* node) const
return NodeFilter::FILTER_SKIP;
if (!m_filter)
return NodeFilter::FILTER_ACCEPT;
- return m_filter->acceptNode(state, node);
+ return m_filter->acceptNode(node, exceptionState);
}
} // namespace WebCore
« no previous file with comments | « Source/core/dom/NodeIteratorBase.h ('k') | Source/core/dom/TreeWalker.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698