OLD | NEW |
1 /* | 1 /* |
2 * This file is part of the render object implementation for KHTML. | 2 * This file is part of the render object implementation for KHTML. |
3 * | 3 * |
4 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 4 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
5 * (C) 1999 Antti Koivisto (koivisto@kde.org) | 5 * (C) 1999 Antti Koivisto (koivisto@kde.org) |
6 * Copyright (C) 2003 Apple Computer, Inc. | 6 * Copyright (C) 2003 Apple Computer, Inc. |
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 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
82 --m_currentOrdinal; | 82 --m_currentOrdinal; |
83 if (!m_currentOrdinal) | 83 if (!m_currentOrdinal) |
84 return 0; | 84 return 0; |
85 m_currentChild = m_box->lastChildBox(); | 85 m_currentChild = m_box->lastChildBox(); |
86 } | 86 } |
87 } | 87 } |
88 else | 88 else |
89 m_currentChild = m_forward ? m_currentChild->nextSiblingBox() :
m_currentChild->previousSiblingBox(); | 89 m_currentChild = m_forward ? m_currentChild->nextSiblingBox() :
m_currentChild->previousSiblingBox(); |
90 if (m_currentChild && m_currentChild->style()->boxOrdinalGroup() > m
_lastOrdinal) | 90 if (m_currentChild && m_currentChild->style()->boxOrdinalGroup() > m
_lastOrdinal) |
91 m_lastOrdinal = m_currentChild->style()->boxOrdinalGroup(); | 91 m_lastOrdinal = m_currentChild->style()->boxOrdinalGroup(); |
92 } while (!m_currentChild || m_currentChild->style()->boxOrdinalGroup() !
= m_currentOrdinal | 92 } while (!m_currentChild || (!m_currentChild->isAnonymous() |
93 || m_currentChild->style()->visibility() == COLLAPSE); | 93 && (m_currentChild->style()->boxOrdinalGroup() != m_currentOrdi
nal || m_currentChild->style()->visibility() == COLLAPSE))); |
94 return m_currentChild; | 94 return m_currentChild; |
95 } | 95 } |
96 | 96 |
97 private: | 97 private: |
98 RenderFlexibleBox* m_box; | 98 RenderFlexibleBox* m_box; |
99 RenderBox* m_currentChild; | 99 RenderBox* m_currentChild; |
100 bool m_forward; | 100 bool m_forward; |
101 unsigned int m_currentOrdinal; | 101 unsigned int m_currentOrdinal; |
102 unsigned int m_lastOrdinal; | 102 unsigned int m_lastOrdinal; |
103 }; | 103 }; |
(...skipping 905 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1009 if (isPositioned()) | 1009 if (isPositioned()) |
1010 return "RenderFlexibleBox (positioned)"; | 1010 return "RenderFlexibleBox (positioned)"; |
1011 if (isAnonymous()) | 1011 if (isAnonymous()) |
1012 return "RenderFlexibleBox (generated)"; | 1012 return "RenderFlexibleBox (generated)"; |
1013 if (isRelPositioned()) | 1013 if (isRelPositioned()) |
1014 return "RenderFlexibleBox (relative positioned)"; | 1014 return "RenderFlexibleBox (relative positioned)"; |
1015 return "RenderFlexibleBox"; | 1015 return "RenderFlexibleBox"; |
1016 } | 1016 } |
1017 | 1017 |
1018 } // namespace WebCore | 1018 } // namespace WebCore |
OLD | NEW |