OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2002 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 2002 Lars Knoll (knoll@kde.org) |
3 * (C) 2002 Dirk Mueller (mueller@kde.org) | 3 * (C) 2002 Dirk Mueller (mueller@kde.org) |
4 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2013 Apple Inc. | 4 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2013 Apple Inc. |
5 * | 5 * |
6 * This library is free software; you can redistribute it and/or | 6 * This library is free software; you can redistribute it and/or |
7 * modify it under the terms of the GNU Library General Public | 7 * modify it under the terms of the GNU Library General Public |
8 * License as published by the Free Software Foundation; either | 8 * License as published by the Free Software Foundation; either |
9 * version 2 of the License. | 9 * version 2 of the License. |
10 * | 10 * |
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
173 } | 173 } |
174 | 174 |
175 return usedWidth; | 175 return usedWidth; |
176 } | 176 } |
177 | 177 |
178 void TableLayoutAlgorithmFixed::computeIntrinsicLogicalWidths(LayoutUnit& minWid
th, LayoutUnit& maxWidth) | 178 void TableLayoutAlgorithmFixed::computeIntrinsicLogicalWidths(LayoutUnit& minWid
th, LayoutUnit& maxWidth) |
179 { | 179 { |
180 minWidth = maxWidth = LayoutUnit(calcWidthArray()); | 180 minWidth = maxWidth = LayoutUnit(calcWidthArray()); |
181 } | 181 } |
182 | 182 |
| 183 LayoutUnit TableLayoutAlgorithmFixed::scaledWidthFromPercentColumns() |
| 184 { |
| 185 return LayoutUnit(0); |
| 186 } |
| 187 |
183 void TableLayoutAlgorithmFixed::applyPreferredLogicalWidthQuirks(LayoutUnit& min
Width, LayoutUnit& maxWidth) const | 188 void TableLayoutAlgorithmFixed::applyPreferredLogicalWidthQuirks(LayoutUnit& min
Width, LayoutUnit& maxWidth) const |
184 { | 189 { |
185 Length tableLogicalWidth = m_table->style()->logicalWidth(); | 190 Length tableLogicalWidth = m_table->style()->logicalWidth(); |
186 if (tableLogicalWidth.isFixed() && tableLogicalWidth.isPositive()) { | 191 if (tableLogicalWidth.isFixed() && tableLogicalWidth.isPositive()) { |
187 minWidth = maxWidth = LayoutUnit(max(minWidth, LayoutUnit(tableLogicalWi
dth.value() - m_table->bordersPaddingAndSpacingInRowDirection())).floor()); | 192 minWidth = maxWidth = LayoutUnit(max(minWidth, LayoutUnit(tableLogicalWi
dth.value() - m_table->bordersPaddingAndSpacingInRowDirection())).floor()); |
188 } | 193 } |
189 | 194 |
190 /* | 195 /* |
191 <table style="width:100%; background-color:red"><tr><td> | 196 <table style="width:100%; background-color:red"><tr><td> |
192 <table style="background-color:blue"><tr><td> | 197 <table style="background-color:blue"><tr><td> |
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
331 LayoutTableRow* row = section->rowLayoutObjectAt(i); | 336 LayoutTableRow* row = section->rowLayoutObjectAt(i); |
332 if (!row) | 337 if (!row) |
333 continue; | 338 continue; |
334 for (LayoutTableCell* cell = row->firstCell(); cell; cell = cell->ne
xtCell()) | 339 for (LayoutTableCell* cell = row->firstCell(); cell; cell = cell->ne
xtCell()) |
335 cell->setPreferredLogicalWidthsDirty(); | 340 cell->setPreferredLogicalWidthsDirty(); |
336 } | 341 } |
337 } | 342 } |
338 } | 343 } |
339 | 344 |
340 } // namespace blink | 345 } // namespace blink |
OLD | NEW |