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

Unified Diff: webkit/pending/NodeFilter.cpp

Issue 4097: Implement better JS exception handling by abstracting KJS::ExecState into an ... (Closed) Base URL: svn://chrome-svn/chrome/branches/chrome_webkit_merge_branch/
Patch Set: '' Created 12 years, 3 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 | « webkit/pending/NodeFilter.h ('k') | webkit/pending/NodeFilterCondition.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/pending/NodeFilter.cpp
===================================================================
--- webkit/pending/NodeFilter.cpp (revision 2614)
+++ webkit/pending/NodeFilter.cpp (working copy)
@@ -25,19 +25,20 @@
#include "config.h"
#include "NodeFilter.h"
+#include "ExceptionContext.h"
#include "Node.h"
-#include <kjs/ExecState.h>
-using namespace KJS;
-
namespace WebCore {
-#if USE(JSC)
-short NodeFilter::acceptNode(ExecState* exec, Node* node) const
+short NodeFilter::acceptNode(ExceptionContext* exec, Node* node) const
{
// cast to short silences "enumeral and non-enumeral types in return" warning
return m_condition ? m_condition->acceptNode(exec, node) : static_cast<short>(FILTER_ACCEPT);
}
-#endif
+short NodeFilter::acceptNode(Node* node) const
+{
+ return acceptNode(ExceptionContext::createFromNode(node), node);
+}
+
} // namespace WebCore
« no previous file with comments | « webkit/pending/NodeFilter.h ('k') | webkit/pending/NodeFilterCondition.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698