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

Unified Diff: Source/core/dom/NodeFilter.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/NodeFilter.h ('k') | Source/core/dom/NodeFilter.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/NodeFilter.cpp
diff --git a/Source/core/dom/NodeFilter.cpp b/Source/core/dom/NodeFilter.cpp
index 6fedc7a0f1e4982c0e898b057ef30d6649e2d18c..da29d925125954ac66a1e41742badc12f49be20e 100644
--- a/Source/core/dom/NodeFilter.cpp
+++ b/Source/core/dom/NodeFilter.cpp
@@ -27,10 +27,10 @@
namespace WebCore {
-short NodeFilter::acceptNode(ScriptState* state, Node* node) const
+short NodeFilter::acceptNode(Node* node, ExceptionState& exceptionState) const
{
// cast to short silences "enumeral and non-enumeral types in return" warning
- return m_condition ? m_condition->acceptNode(state, node) : static_cast<short>(FILTER_ACCEPT);
+ return m_condition ? m_condition->acceptNode(node, exceptionState) : static_cast<short>(FILTER_ACCEPT);
}
} // namespace WebCore
« no previous file with comments | « Source/core/dom/NodeFilter.h ('k') | Source/core/dom/NodeFilter.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698