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

Unified Diff: webkit/pending/Traversal.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/Traversal.h ('k') | webkit/pending/TreeWalker.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/pending/Traversal.cpp
===================================================================
--- webkit/pending/Traversal.cpp (revision 2614)
+++ webkit/pending/Traversal.cpp (working copy)
@@ -25,13 +25,10 @@
#include "config.h"
#include "Traversal.h"
+#include "ExceptionContext.h"
#include "Node.h"
#include "NodeFilter.h"
-#if USE(JSC)
-using namespace KJS;
-#endif
-
namespace WebCore {
Traversal::Traversal(PassRefPtr<Node> rootNode, unsigned whatToShow, PassRefPtr<NodeFilter> nodeFilter, bool expandEntityReferences)
@@ -42,8 +39,7 @@
{
}
-#if USE(JSC)
-short Traversal::acceptNode(ExecState* exec, Node* node) const
+short Traversal::acceptNode(ExceptionContext* exec, Node* node) const
{
// FIXME: To handle XML properly we would have to check m_expandEntityReferences.
@@ -55,6 +51,5 @@
return NodeFilter::FILTER_ACCEPT;
return m_filter->acceptNode(exec, node);
}
-#endif
} // namespace WebCore
« no previous file with comments | « webkit/pending/Traversal.h ('k') | webkit/pending/TreeWalker.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698