summaryrefslogtreecommitdiffstats
path: root/chromium/third_party/WebKit/Source/core/dom/TreeWalker.h
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/third_party/WebKit/Source/core/dom/TreeWalker.h')
-rw-r--r--chromium/third_party/WebKit/Source/core/dom/TreeWalker.h34
1 files changed, 19 insertions, 15 deletions
diff --git a/chromium/third_party/WebKit/Source/core/dom/TreeWalker.h b/chromium/third_party/WebKit/Source/core/dom/TreeWalker.h
index 354e449289a..2980a0fce2d 100644
--- a/chromium/third_party/WebKit/Source/core/dom/TreeWalker.h
+++ b/chromium/third_party/WebKit/Source/core/dom/TreeWalker.h
@@ -27,7 +27,8 @@
#include "bindings/v8/ScriptWrappable.h"
#include "core/dom/NodeFilter.h"
-#include "core/dom/Traversal.h"
+#include "core/dom/NodeIteratorBase.h"
+#include "platform/heap/Handle.h"
#include "wtf/PassRefPtr.h"
#include "wtf/RefCounted.h"
@@ -35,30 +36,33 @@ namespace WebCore {
class ExceptionState;
-class TreeWalker : public ScriptWrappable, public RefCounted<TreeWalker>, public Traversal {
+class TreeWalker FINAL : public RefCountedWillBeGarbageCollectedFinalized<TreeWalker>, public ScriptWrappable, public NodeIteratorBase {
+ WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(TreeWalker);
public:
- static PassRefPtr<TreeWalker> create(PassRefPtr<Node> rootNode, unsigned whatToShow, PassRefPtr<NodeFilter> filter)
+ static PassRefPtrWillBeRawPtr<TreeWalker> create(PassRefPtrWillBeRawPtr<Node> rootNode, unsigned whatToShow, PassRefPtrWillBeRawPtr<NodeFilter> filter)
{
- return adoptRef(new TreeWalker(rootNode, whatToShow, filter));
+ return adoptRefWillBeNoop(new TreeWalker(rootNode, whatToShow, filter));
}
Node* currentNode() const { return m_current.get(); }
- void setCurrentNode(PassRefPtr<Node>, ExceptionState&);
+ void setCurrentNode(PassRefPtrWillBeRawPtr<Node>, ExceptionState&);
- Node* parentNode(ScriptState*);
- Node* firstChild(ScriptState*);
- Node* lastChild(ScriptState*);
- Node* previousSibling(ScriptState*);
- Node* nextSibling(ScriptState*);
- Node* previousNode(ScriptState*);
- Node* nextNode(ScriptState*);
+ Node* parentNode(ExceptionState&);
+ Node* firstChild(ExceptionState&);
+ Node* lastChild(ExceptionState&);
+ Node* previousSibling(ExceptionState&);
+ Node* nextSibling(ExceptionState&);
+ Node* previousNode(ExceptionState&);
+ Node* nextNode(ExceptionState&);
+
+ void trace(Visitor*);
private:
- TreeWalker(PassRefPtr<Node>, unsigned whatToShow, PassRefPtr<NodeFilter>);
+ TreeWalker(PassRefPtrWillBeRawPtr<Node>, unsigned whatToShow, PassRefPtrWillBeRawPtr<NodeFilter>);
- Node* setCurrent(PassRefPtr<Node>);
+ Node* setCurrent(PassRefPtrWillBeRawPtr<Node>);
- RefPtr<Node> m_current;
+ RefPtrWillBeMember<Node> m_current;
};
} // namespace WebCore