OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 1997 Martin Jones (mjones@kde.org) | 2 * Copyright (C) 1997 Martin Jones (mjones@kde.org) |
3 * (C) 1997 Torben Weis (weis@kde.org) | 3 * (C) 1997 Torben Weis (weis@kde.org) |
4 * (C) 1998 Waldo Bastian (bastian@kde.org) | 4 * (C) 1998 Waldo Bastian (bastian@kde.org) |
5 * (C) 1999 Lars Knoll (knoll@kde.org) | 5 * (C) 1999 Lars Knoll (knoll@kde.org) |
6 * (C) 1999 Antti Koivisto (koivisto@kde.org) | 6 * (C) 1999 Antti Koivisto (koivisto@kde.org) |
7 * Copyright (C) 2003, 2004, 2005, 2006, 2009, 2013 Apple Inc. All rights reserv
ed. | 7 * Copyright (C) 2003, 2004, 2005, 2006, 2009, 2013 Apple Inc. All rights reserv
ed. |
8 * | 8 * |
9 * This library is free software; you can redistribute it and/or | 9 * This library is free software; you can redistribute it and/or |
10 * modify it under the terms of the GNU Library General Public | 10 * modify it under the terms of the GNU Library General Public |
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
125 struct CellStruct { | 125 struct CellStruct { |
126 DISALLOW_NEW_EXCEPT_PLACEMENT_NEW(); | 126 DISALLOW_NEW_EXCEPT_PLACEMENT_NEW(); |
127 public: | 127 public: |
128 // All the cells that fills this grid "slot". | 128 // All the cells that fills this grid "slot". |
129 // Due to colspan / rowpsan, it is possible to have overlapping cells | 129 // Due to colspan / rowpsan, it is possible to have overlapping cells |
130 // (see class comment about an example). | 130 // (see class comment about an example). |
131 // This Vector is sorted in DOM order. | 131 // This Vector is sorted in DOM order. |
132 Vector<LayoutTableCell*, 1> cells; | 132 Vector<LayoutTableCell*, 1> cells; |
133 bool inColSpan; // true for columns after the first in a colspan | 133 bool inColSpan; // true for columns after the first in a colspan |
134 | 134 |
135 CellStruct() | 135 CellStruct(); |
136 : inColSpan(false) | 136 ~CellStruct(); |
137 { | |
138 } | |
139 | 137 |
140 // This is the cell in the grid "slot" that is on top of the others | 138 // This is the cell in the grid "slot" that is on top of the others |
141 // (aka the last cell in DOM order for this slot). | 139 // (aka the last cell in DOM order for this slot). |
142 // | 140 // |
143 // This is the cell originating from this slot if it exists. | 141 // This is the cell originating from this slot if it exists. |
144 // | 142 // |
145 // The concept of a primary cell is dubious at most as it doesn't | 143 // The concept of a primary cell is dubious at most as it doesn't |
146 // correspond to a DOM or rendering concept. Also callers should be | 144 // correspond to a DOM or rendering concept. Also callers should be |
147 // careful about assumptions about it. For example, even though the | 145 // careful about assumptions about it. For example, even though the |
148 // primary cell is visibly the top most, it is not guaranteed to be | 146 // primary cell is visibly the top most, it is not guaranteed to be |
(...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
392 // The use is to disable a painting optimization where we just paint the | 390 // The use is to disable a painting optimization where we just paint the |
393 // invalidated cells. | 391 // invalidated cells. |
394 bool m_hasMultipleCellLevels; | 392 bool m_hasMultipleCellLevels; |
395 }; | 393 }; |
396 | 394 |
397 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutTableSection, isTableSection()); | 395 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutTableSection, isTableSection()); |
398 | 396 |
399 } // namespace blink | 397 } // namespace blink |
400 | 398 |
401 #endif // LayoutTableSection_h | 399 #endif // LayoutTableSection_h |
OLD | NEW |