| Index: third_party/WebKit/Source/core/dom/CombinedNodeTraversal.h
|
| diff --git a/third_party/WebKit/Source/core/html/HTMLTagCollection.cpp b/third_party/WebKit/Source/core/dom/CombinedNodeTraversal.h
|
| similarity index 59%
|
| copy from third_party/WebKit/Source/core/html/HTMLTagCollection.cpp
|
| copy to third_party/WebKit/Source/core/dom/CombinedNodeTraversal.h
|
| index ba08802fd2aa3c633f58e2ea62797aff1381a5fa..0b938acbd3f33811afa0406c92c45cbb8dc1bb17 100644
|
| --- a/third_party/WebKit/Source/core/html/HTMLTagCollection.cpp
|
| +++ b/third_party/WebKit/Source/core/dom/CombinedNodeTraversal.h
|
| @@ -2,8 +2,8 @@
|
| * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
|
| * (C) 1999 Antti Koivisto (koivisto@kde.org)
|
| * (C) 2001 Dirk Mueller (mueller@kde.org)
|
| - * Copyright (C) 2004, 2005, 2006, 2007 Apple Inc. All rights reserved.
|
| - * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies)
|
| + * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc. All rights reserved.
|
| + * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.torchmobile.com/)
|
| * Copyright (C) 2014 Samsung Electronics. All rights reserved.
|
| *
|
| * This library is free software; you can redistribute it and/or
|
| @@ -20,17 +20,29 @@
|
| * along with this library; see the file COPYING.LIB. If not, write to
|
| * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
|
| * Boston, MA 02110-1301, USA.
|
| + *
|
| */
|
|
|
| -#include "HTMLTagCollection.h"
|
| +#ifndef CombinedNodeTraversal_h
|
| +#define CombinedNodeTraversal_h
|
| +
|
| +#include "core/dom/Node.h"
|
| +#include "core/html/HTMLSlotElement.h"
|
|
|
| namespace blink {
|
|
|
| -HTMLTagCollection::HTMLTagCollection(ContainerNode& rootNode, const AtomicString& localName)
|
| - : TagCollection(rootNode, HTMLTagCollectionType, starAtom, localName)
|
| - , m_loweredLocalName(localName.lower())
|
| -{
|
| - ASSERT(rootNode.document().isHTMLDocument());
|
| +class CombinedNodeTraversal {
|
| + public:
|
| + Node* next();
|
| + Node* previous();
|
| + Node* customReturnForNext();
|
| + Node* customReturnForPrevious();
|
| + CombinedNodeTraversal(const Node& start);
|
| +
|
| + private:
|
| + RefPtrWillBePersistent<Node> m_currentNode;
|
| + bool m_traversingAssignedNodes;
|
| +}; // namespace blink
|
| }
|
|
|
| -} // namespace blink
|
| +#endif
|
|
|