| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
| 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) | 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) |
| 4 * (C) 2001 Dirk Mueller (mueller@kde.org) | 4 * (C) 2001 Dirk Mueller (mueller@kde.org) |
| 5 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc. | 5 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc. |
| 6 * All rights reserved. | 6 * All rights reserved. |
| 7 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. | 7 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. |
| 8 * (http://www.torchmobile.com/) | 8 * (http://www.torchmobile.com/) |
| 9 * Copyright (C) 2014 Samsung Electronics. All rights reserved. | 9 * Copyright (C) 2014 Samsung Electronics. All rights reserved. |
| 10 * | 10 * |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 * Boston, MA 02110-1301, USA. | 24 * Boston, MA 02110-1301, USA. |
| 25 * | 25 * |
| 26 */ | 26 */ |
| 27 | 27 |
| 28 #ifndef NodeTraversal_h | 28 #ifndef NodeTraversal_h |
| 29 #define NodeTraversal_h | 29 #define NodeTraversal_h |
| 30 | 30 |
| 31 #include "core/CoreExport.h" | 31 #include "core/CoreExport.h" |
| 32 #include "core/dom/ContainerNode.h" | 32 #include "core/dom/ContainerNode.h" |
| 33 #include "core/dom/Node.h" | 33 #include "core/dom/Node.h" |
| 34 #include "wtf/Allocator.h" | 34 #include "platform/wtf/Allocator.h" |
| 35 | 35 |
| 36 namespace blink { | 36 namespace blink { |
| 37 | 37 |
| 38 template <class Iterator> | 38 template <class Iterator> |
| 39 class TraversalRange; | 39 class TraversalRange; |
| 40 template <class TraversalNext> | 40 template <class TraversalNext> |
| 41 class TraversalAncestorsIterator; | 41 class TraversalAncestorsIterator; |
| 42 template <class TraversalNext> | 42 template <class TraversalNext> |
| 43 class TraversalInclusiveAncestorsIterator; | 43 class TraversalInclusiveAncestorsIterator; |
| 44 template <class TraversalNext> | 44 template <class TraversalNext> |
| (...skipping 350 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 395 inline Node* NodeTraversal::ChildAtTemplate(NodeType& parent, unsigned index) { | 395 inline Node* NodeTraversal::ChildAtTemplate(NodeType& parent, unsigned index) { |
| 396 Node* child = parent.firstChild(); | 396 Node* child = parent.firstChild(); |
| 397 while (child && index--) | 397 while (child && index--) |
| 398 child = child->nextSibling(); | 398 child = child->nextSibling(); |
| 399 return child; | 399 return child; |
| 400 } | 400 } |
| 401 | 401 |
| 402 } // namespace blink | 402 } // namespace blink |
| 403 | 403 |
| 404 #endif | 404 #endif |
| OLD | NEW |