summaryrefslogtreecommitdiffstats
path: root/Source/WebCore/dom/NodeFilter.h
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WebCore/dom/NodeFilter.h')
-rw-r--r--Source/WebCore/dom/NodeFilter.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/Source/WebCore/dom/NodeFilter.h b/Source/WebCore/dom/NodeFilter.h
index 5ce2866..d6e47fb 100644
--- a/Source/WebCore/dom/NodeFilter.h
+++ b/Source/WebCore/dom/NodeFilter.h
@@ -70,15 +70,22 @@ namespace WebCore {
return adoptRef(new NodeFilter(condition));
}
+ static PassRefPtr<NodeFilter> create()
+ {
+ return adoptRef(new NodeFilter());
+ }
+
short acceptNode(ScriptState*, Node*) const;
- void markAggregate(JSC::MarkStack& markStack) { m_condition->markAggregate(markStack); };
// Do not call these functions. They are just scaffolding to support the Objective-C bindings.
// They operate in the main thread normal world, and they swallow JS exceptions.
short acceptNode(Node* node) const { return acceptNode(scriptStateFromNode(mainThreadNormalWorld(), node), node); }
+
+ void setCondition(PassRefPtr<NodeFilterCondition> condition) { ASSERT(!m_condition); m_condition = condition; }
private:
NodeFilter(PassRefPtr<NodeFilterCondition> condition) : m_condition(condition) { }
+ NodeFilter() {}
RefPtr<NodeFilterCondition> m_condition;
};