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, 2007, 2008, 2009, 2010 Apple Inc. All r
ights reserved. | 7 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All r
ights reserved. |
8 * Copyright (C) 2006 Alexey Proskuryakov (ap@nypop.com) | 8 * Copyright (C) 2006 Alexey Proskuryakov (ap@nypop.com) |
9 * | 9 * |
10 * This library is free software; you can redistribute it and/or | 10 * This library is free software; you can redistribute it and/or |
(...skipping 398 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
409 for (RenderTableSection* section = topSection(); section; section = sectionB
elow(section)) { | 409 for (RenderTableSection* section = topSection(); section; section = sectionB
elow(section)) { |
410 section->layoutIfNeeded(); | 410 section->layoutIfNeeded(); |
411 section->computeOverflowFromCells(); | 411 section->computeOverflowFromCells(); |
412 } | 412 } |
413 } | 413 } |
414 | 414 |
415 void RenderTable::layout() | 415 void RenderTable::layout() |
416 { | 416 { |
417 // Note: RenderTable is handled differently than other RenderBlocks and the
LayoutScope | 417 // Note: RenderTable is handled differently than other RenderBlocks and the
LayoutScope |
418 // must be created before the table begins laying out. | 418 // must be created before the table begins laying out. |
419 FastTextAutosizer::LayoutScope fastTextAutosizerLayoutScope(document(), this
); | 419 FastTextAutosizer::LayoutScope fastTextAutosizerLayoutScope(this); |
420 ASSERT(needsLayout()); | 420 ASSERT(needsLayout()); |
421 | 421 |
422 LayoutRectRecorder recorder(*this); | 422 LayoutRectRecorder recorder(*this); |
423 | 423 |
424 if (simplifiedLayout()) | 424 if (simplifiedLayout()) |
425 return; | 425 return; |
426 | 426 |
427 recalcSectionsIfNeeded(); | 427 recalcSectionsIfNeeded(); |
428 // FIXME: We should do this recalc lazily in borderStart/borderEnd so that w
e don't have to make sure | 428 // FIXME: We should do this recalc lazily in borderStart/borderEnd so that w
e don't have to make sure |
429 // to call this before we call borderStart/borderEnd to avoid getting a stal
e value. | 429 // to call this before we call borderStart/borderEnd to avoid getting a stal
e value. |
(...skipping 1028 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1458 const BorderValue& RenderTable::tableEndBorderAdjoiningCell(const RenderTableCel
l* cell) const | 1458 const BorderValue& RenderTable::tableEndBorderAdjoiningCell(const RenderTableCel
l* cell) const |
1459 { | 1459 { |
1460 ASSERT(cell->isFirstOrLastCellInRow()); | 1460 ASSERT(cell->isFirstOrLastCellInRow()); |
1461 if (hasSameDirectionAs(cell->row())) | 1461 if (hasSameDirectionAs(cell->row())) |
1462 return style()->borderEnd(); | 1462 return style()->borderEnd(); |
1463 | 1463 |
1464 return style()->borderStart(); | 1464 return style()->borderStart(); |
1465 } | 1465 } |
1466 | 1466 |
1467 } | 1467 } |
OLD | NEW |