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.
All rights reserved. | 5 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc.
All rights reserved. |
6 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t
orchmobile.com/) | 6 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t
orchmobile.com/) |
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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
48 | 48 |
49 // Does a reverse pre-order traversal to find the node that comes before the cur
rent one in document order | 49 // Does a reverse pre-order traversal to find the node that comes before the cur
rent one in document order |
50 Node* previous(const Node&, const Node* stayWithin = 0); | 50 Node* previous(const Node&, const Node* stayWithin = 0); |
51 | 51 |
52 // Like previous, but skips children and starts with the next sibling. | 52 // Like previous, but skips children and starts with the next sibling. |
53 Node* previousSkippingChildren(const Node&, const Node* stayWithin = 0); | 53 Node* previousSkippingChildren(const Node&, const Node* stayWithin = 0); |
54 | 54 |
55 // Like next, but visits parents after their children. | 55 // Like next, but visits parents after their children. |
56 Node* nextPostOrder(const Node&, const Node* stayWithin = 0); | 56 Node* nextPostOrder(const Node&, const Node* stayWithin = 0); |
57 | 57 |
58 // Like previous/previousSkippingChildren, but visits parents before their child
ren. | 58 // Like previous, but visits parents before their children. |
59 Node* previousPostOrder(const Node&, const Node* stayWithin = 0); | 59 Node* previousPostOrder(const Node&, const Node* stayWithin = 0); |
60 Node* previousSkippingChildrenPostOrder(const Node&, const Node* stayWithin = 0)
; | |
61 | 60 |
62 // Pre-order traversal including the pseudo-elements. | 61 // Pre-order traversal including the pseudo-elements. |
63 Node* previousIncludingPseudo(const Node&, const Node* stayWithin = 0); | 62 Node* previousIncludingPseudo(const Node&, const Node* stayWithin = 0); |
64 Node* nextIncludingPseudo(const Node&, const Node* stayWithin = 0); | 63 Node* nextIncludingPseudo(const Node&, const Node* stayWithin = 0); |
65 Node* nextIncludingPseudoSkippingChildren(const Node&, const Node* stayWithin =
0); | 64 Node* nextIncludingPseudoSkippingChildren(const Node&, const Node* stayWithin =
0); |
66 | 65 |
67 Node* nextAncestorSibling(const Node&); | 66 Node* nextAncestorSibling(const Node&); |
68 Node* nextAncestorSibling(const Node&, const Node* stayWithin); | 67 Node* nextAncestorSibling(const Node&, const Node* stayWithin); |
69 | 68 |
70 template <class NodeType> | 69 template <class NodeType> |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
113 return nextAncestorSibling(current, stayWithin); | 112 return nextAncestorSibling(current, stayWithin); |
114 } | 113 } |
115 inline Node* nextSkippingChildren(const Node& current, const Node* stayWithin) {
return traverseNextSkippingChildrenTemplate(current, stayWithin); } | 114 inline Node* nextSkippingChildren(const Node& current, const Node* stayWithin) {
return traverseNextSkippingChildrenTemplate(current, stayWithin); } |
116 inline Node* nextSkippingChildren(const ContainerNode& current, const Node* stay
Within) { return traverseNextSkippingChildrenTemplate(current, stayWithin); } | 115 inline Node* nextSkippingChildren(const ContainerNode& current, const Node* stay
Within) { return traverseNextSkippingChildrenTemplate(current, stayWithin); } |
117 | 116 |
118 } | 117 } |
119 | 118 |
120 } | 119 } |
121 | 120 |
122 #endif | 121 #endif |
OLD | NEW |