| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
| 3 * Copyright (C) 2000 Frederik Holljen (frederik.holljen@hig.no) | 3 * Copyright (C) 2000 Frederik Holljen (frederik.holljen@hig.no) |
| 4 * Copyright (C) 2001 Peter Kelly (pmk@post.com) | 4 * Copyright (C) 2001 Peter Kelly (pmk@post.com) |
| 5 * Copyright (C) 2006 Samuel Weinig (sam.weinig@gmail.com) | 5 * Copyright (C) 2006 Samuel Weinig (sam.weinig@gmail.com) |
| 6 * Copyright (C) 2004, 2008 Apple Inc. All rights reserved. | 6 * Copyright (C) 2004, 2008 Apple Inc. All rights reserved. |
| 7 * | 7 * |
| 8 * This library is free software; you can redistribute it and/or | 8 * This library is free software; you can redistribute it and/or |
| 9 * modify it under the terms of the GNU Library General Public | 9 * modify it under the terms of the GNU Library General Public |
| 10 * License as published by the Free Software Foundation; either | 10 * License as published by the Free Software Foundation; either |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 | 26 |
| 27 #include "bindings/core/v8/ExceptionMessages.h" | 27 #include "bindings/core/v8/ExceptionMessages.h" |
| 28 #include "bindings/core/v8/ExceptionState.h" | 28 #include "bindings/core/v8/ExceptionState.h" |
| 29 #include "core/dom/ContainerNode.h" | 29 #include "core/dom/ContainerNode.h" |
| 30 #include "core/dom/NodeTraversal.h" | 30 #include "core/dom/NodeTraversal.h" |
| 31 | 31 |
| 32 namespace blink { | 32 namespace blink { |
| 33 | 33 |
| 34 TreeWalker::TreeWalker(Node* root_node, | 34 TreeWalker::TreeWalker(Node* root_node, |
| 35 unsigned what_to_show, | 35 unsigned what_to_show, |
| 36 NodeFilter* filter) | 36 V8NodeFilterCondition* filter) |
| 37 : NodeIteratorBase(this, root_node, what_to_show, filter), | 37 : NodeIteratorBase(this, root_node, what_to_show, filter), |
| 38 current_(root()) {} | 38 current_(root()) {} |
| 39 | 39 |
| 40 void TreeWalker::setCurrentNode(Node* node) { | 40 void TreeWalker::setCurrentNode(Node* node) { |
| 41 DCHECK(node); | 41 DCHECK(node); |
| 42 current_ = node; | 42 current_ = node; |
| 43 } | 43 } |
| 44 | 44 |
| 45 inline Node* TreeWalker::SetCurrent(Node* node) { | 45 inline Node* TreeWalker::SetCurrent(Node* node) { |
| 46 current_ = node; | 46 current_ = node; |
| (...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 266 DEFINE_TRACE(TreeWalker) { | 266 DEFINE_TRACE(TreeWalker) { |
| 267 visitor->Trace(current_); | 267 visitor->Trace(current_); |
| 268 NodeIteratorBase::Trace(visitor); | 268 NodeIteratorBase::Trace(visitor); |
| 269 } | 269 } |
| 270 | 270 |
| 271 DEFINE_TRACE_WRAPPERS(TreeWalker) { | 271 DEFINE_TRACE_WRAPPERS(TreeWalker) { |
| 272 NodeIteratorBase::TraceWrappers(visitor); | 272 NodeIteratorBase::TraceWrappers(visitor); |
| 273 } | 273 } |
| 274 | 274 |
| 275 } // namespace blink | 275 } // namespace blink |
| OLD | NEW |