#include "config.h"
#include "core/dom/TreeWalker.h"
-#include "bindings/v8/ExceptionMessages.h"
-#include "bindings/v8/ExceptionState.h"
+#include "bindings/core/v8/ExceptionMessages.h"
+#include "bindings/core/v8/ExceptionState.h"
#include "core/dom/ContainerNode.h"
#include "core/dom/ExceptionCode.h"
#include "core/dom/NodeTraversal.h"
-namespace WebCore {
+namespace blink {
TreeWalker::TreeWalker(PassRefPtrWillBeRawPtr<Node> rootNode, unsigned whatToShow, PassRefPtrWillBeRawPtr<NodeFilter> filter)
: NodeIteratorBase(rootNode, whatToShow, filter)
m_current = node.release();
return m_current.get();
case NodeFilter::FILTER_SKIP:
- if (node->firstChild()) {
+ if (node->hasChildren()) {
node = node->firstChild();
continue;
}
m_current = sibling.release();
return m_current.get();
case NodeFilter::FILTER_SKIP:
- if (sibling->firstChild()) {
+ if (sibling->hasChildren()) {
sibling = sibling->firstChild();
node = sibling;
continue;
NodeIteratorBase::trace(visitor);
}
-} // namespace WebCore
+} // namespace blink