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

Unified Diff: webkit/pending/NodeFilter.h

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/Node.cpp ('k') | webkit/pending/NodeFilter.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/pending/NodeFilter.h
===================================================================
--- webkit/pending/NodeFilter.h (revision 2614)
+++ webkit/pending/NodeFilter.h (working copy)
@@ -25,15 +25,14 @@
#ifndef NodeFilter_h
#define NodeFilter_h
-#if USE(JSC)
-#include "JSDOMBinding.h"
-#endif
#include "NodeFilterCondition.h"
#include <wtf/PassRefPtr.h>
#include <wtf/RefPtr.h>
namespace WebCore {
+ class ExceptionContext;
+
class NodeFilter : public RefCounted<NodeFilter> {
public:
/**
@@ -73,13 +72,11 @@
return adoptRef(new NodeFilter(condition));
}
-#if USE(JSC)
- short acceptNode(KJS::ExecState*, Node*) const;
+ short acceptNode(ExceptionContext*, Node*) const;
void mark() { m_condition->mark(); };
// For non-JS bindings. Silently ignores the JavaScript exception if any.
- short acceptNode(Node* node) const { return acceptNode(execStateFromNode(node), node); }
-#endif
+ short acceptNode(Node* node) const;
private:
NodeFilter(PassRefPtr<NodeFilterCondition> condition) : m_condition(condition) { }
« no previous file with comments | « webkit/pending/Node.cpp ('k') | webkit/pending/NodeFilter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698