| 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 Apple Inc. | 4 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 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 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 130 } | 130 } |
| 131 } | 131 } |
| 132 | 132 |
| 133 // Iterate over the first row in case some are unspecified. | 133 // Iterate over the first row in case some are unspecified. |
| 134 RenderTableSection* section = m_table->topNonEmptySection(); | 134 RenderTableSection* section = m_table->topNonEmptySection(); |
| 135 if (!section) | 135 if (!section) |
| 136 return usedWidth; | 136 return usedWidth; |
| 137 | 137 |
| 138 unsigned currentColumn = 0; | 138 unsigned currentColumn = 0; |
| 139 | 139 |
| 140 RenderObject* firstRow = section->firstChild(); | 140 RenderTableRow* firstRow = toRenderTableRow(section->firstChild()); |
| 141 for (RenderObject* child = firstRow->firstChild(); child; child = child->nex
tSibling()) { | 141 for (RenderObject* child = firstRow->firstChild(); child; child = child->nex
tSibling()) { |
| 142 if (!child->isTableCell()) | 142 if (!child->isTableCell()) |
| 143 continue; | 143 continue; |
| 144 | 144 |
| 145 RenderTableCell* cell = toRenderTableCell(child); | 145 RenderTableCell* cell = toRenderTableCell(child); |
| 146 | 146 |
| 147 Length logicalWidth = cell->styleOrColLogicalWidth(); | 147 Length logicalWidth = cell->styleOrColLogicalWidth(); |
| 148 unsigned span = cell->colSpan(); | 148 unsigned span = cell->colSpan(); |
| 149 int fixedBorderBoxLogicalWidth = 0; | 149 int fixedBorderBoxLogicalWidth = 0; |
| 150 // FIXME: Support other length types. If the width is non-auto, it shoul
d probably just use | 150 // FIXME: Support other length types. If the width is non-auto, it shoul
d probably just use |
| (...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 333 for (RenderObject* cell = row->firstChild(); cell; cell = cell->next
Sibling()) { | 333 for (RenderObject* cell = row->firstChild(); cell; cell = cell->next
Sibling()) { |
| 334 if (!cell->isTableCell()) | 334 if (!cell->isTableCell()) |
| 335 continue; | 335 continue; |
| 336 cell->setPreferredLogicalWidthsDirty(); | 336 cell->setPreferredLogicalWidthsDirty(); |
| 337 } | 337 } |
| 338 } | 338 } |
| 339 } | 339 } |
| 340 } | 340 } |
| 341 | 341 |
| 342 } // namespace WebCore | 342 } // namespace WebCore |
| OLD | NEW |