#define V8NodeFilterCondition_h
#include "bindings/v8/ScopedPersistent.h"
+#include "bindings/v8/ScriptState.h"
#include "core/dom/NodeFilterCondition.h"
#include <v8.h>
#include "wtf/PassRefPtr.h"
namespace WebCore {
class Node;
-class ScriptState;
+class ExceptionState;
// V8NodeFilterCondition maintains a Javascript implemented callback for
// filtering Node returned by NodeIterator/TreeWalker.
virtual ~V8NodeFilterCondition();
- virtual short acceptNode(ScriptState*, Node*) const OVERRIDE;
+ virtual short acceptNode(Node*, ExceptionState&) const OVERRIDE;
private:
// As the value |filter| is maintained by V8GC, the |owner| which references
static void setWeakCallback(const v8::WeakCallbackData<v8::Value, V8NodeFilterCondition>&);
+ RefPtr<ScriptState> m_scriptState;
ScopedPersistent<v8::Value> m_filter;
};