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 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
121 const BorderValue& borderAdjoiningEndCell(const LayoutTableCell*) const; | 121 const BorderValue& borderAdjoiningEndCell(const LayoutTableCell*) const; |
122 | 122 |
123 bool nodeAtPoint(HitTestResult&, const HitTestLocation& locationInContainer, const LayoutPoint& accumulatedOffset, HitTestAction) override; | 123 bool nodeAtPoint(HitTestResult&, const HitTestLocation& locationInContainer, const LayoutPoint& accumulatedOffset, HitTestAction) override; |
124 | 124 |
125 void addOverflowFromCell(const LayoutTableCell*); | 125 void addOverflowFromCell(const LayoutTableCell*); |
126 | 126 |
127 const char* name() const override { return "LayoutTableRow"; } | 127 const char* name() const override { return "LayoutTableRow"; } |
128 | 128 |
129 bool backgroundIsKnownToBeOpaqueInRect(const LayoutRect&) const override; | 129 bool backgroundIsKnownToBeOpaqueInRect(const LayoutRect&) const override; |
130 | 130 |
131 LayoutUnit paginationStrutPropagatedFromCell() const { return m_paginationSt rutPropagatedFromCell; } | |
132 void setPaginationStrutPropagatedFromCell(LayoutUnit strut) { m_paginationSt rutPropagatedFromCell = strut; }; | |
mstensho (USE GERRIT)
2016/02/03 14:38:48
What if the cells don't all have the same strut?
rhogan
2016/02/24 18:58:17
I can't come up with a test in which they don't -
| |
131 private: | 133 private: |
132 LayoutObjectChildList* virtualChildren() override { return children(); } | 134 LayoutObjectChildList* virtualChildren() override { return children(); } |
133 const LayoutObjectChildList* virtualChildren() const override { return child ren(); } | 135 const LayoutObjectChildList* virtualChildren() const override { return child ren(); } |
134 | 136 |
135 bool isOfType(LayoutObjectType type) const override { return type == LayoutO bjectTableRow || LayoutBox::isOfType(type); } | 137 bool isOfType(LayoutObjectType type) const override { return type == LayoutO bjectTableRow || LayoutBox::isOfType(type); } |
136 | 138 |
137 void willBeRemovedFromTree() override; | 139 void willBeRemovedFromTree() override; |
138 | 140 |
139 void addChild(LayoutObject* child, LayoutObject* beforeChild = nullptr) over ride; | 141 void addChild(LayoutObject* child, LayoutObject* beforeChild = nullptr) over ride; |
140 void layout() override; | 142 void layout() override; |
(...skipping 17 matching lines...) Expand all Loading... | |
158 | 160 |
159 void nextSibling() const = delete; | 161 void nextSibling() const = delete; |
160 void previousSibling() const = delete; | 162 void previousSibling() const = delete; |
161 | 163 |
162 LayoutObjectChildList m_children; | 164 LayoutObjectChildList m_children; |
163 | 165 |
164 // This field should never be read directly. It should be read through | 166 // This field should never be read directly. It should be read through |
165 // rowIndex() above instead. This is to ensure that we never read this | 167 // rowIndex() above instead. This is to ensure that we never read this |
166 // value before it is set. | 168 // value before it is set. |
167 unsigned m_rowIndex : 31; | 169 unsigned m_rowIndex : 31; |
170 LayoutUnit m_paginationStrutPropagatedFromCell; | |
mstensho (USE GERRIT)
2016/02/03 14:38:48
Not sure if LayoutUnit should be used in table cod
| |
168 }; | 171 }; |
169 | 172 |
170 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutTableRow, isTableRow()); | 173 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutTableRow, isTableRow()); |
171 | 174 |
172 inline LayoutTableRow* LayoutTableRow::previousRow() const | 175 inline LayoutTableRow* LayoutTableRow::previousRow() const |
173 { | 176 { |
174 return toLayoutTableRow(LayoutObject::previousSibling()); | 177 return toLayoutTableRow(LayoutObject::previousSibling()); |
175 } | 178 } |
176 | 179 |
177 inline LayoutTableRow* LayoutTableRow::nextRow() const | 180 inline LayoutTableRow* LayoutTableRow::nextRow() const |
178 { | 181 { |
179 return toLayoutTableRow(LayoutObject::nextSibling()); | 182 return toLayoutTableRow(LayoutObject::nextSibling()); |
180 } | 183 } |
181 | 184 |
182 inline LayoutTableRow* LayoutTableSection::firstRow() const | 185 inline LayoutTableRow* LayoutTableSection::firstRow() const |
183 { | 186 { |
184 ASSERT(children() == virtualChildren()); | 187 ASSERT(children() == virtualChildren()); |
185 return toLayoutTableRow(children()->firstChild()); | 188 return toLayoutTableRow(children()->firstChild()); |
186 } | 189 } |
187 | 190 |
188 inline LayoutTableRow* LayoutTableSection::lastRow() const | 191 inline LayoutTableRow* LayoutTableSection::lastRow() const |
189 { | 192 { |
190 ASSERT(children() == virtualChildren()); | 193 ASSERT(children() == virtualChildren()); |
191 return toLayoutTableRow(children()->lastChild()); | 194 return toLayoutTableRow(children()->lastChild()); |
192 } | 195 } |
193 | 196 |
194 } // namespace blink | 197 } // namespace blink |
195 | 198 |
196 #endif // LayoutTableRow_h | 199 #endif // LayoutTableRow_h |
OLD | NEW |