| 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
|
|
|