| 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, 2013 Apple Inc.
All rights reserved. | 7 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2013 Apple Inc.
All rights 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 375 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 386 } | 386 } |
| 387 | 387 |
| 388 void RenderTable::simplifiedNormalFlowLayout() | 388 void RenderTable::simplifiedNormalFlowLayout() |
| 389 { | 389 { |
| 390 for (RenderTableSection* section = topSection(); section; section = sectionB
elow(section)) { | 390 for (RenderTableSection* section = topSection(); section; section = sectionB
elow(section)) { |
| 391 section->layoutIfNeeded(); | 391 section->layoutIfNeeded(); |
| 392 section->computeOverflowFromCells(); | 392 section->computeOverflowFromCells(); |
| 393 } | 393 } |
| 394 } | 394 } |
| 395 | 395 |
| 396 bool RenderTable::recalcChildOverflowAfterStyleChange() |
| 397 { |
| 398 ASSERT(childNeedsOverflowRecalcAfterStyleChange()); |
| 399 clearChildNeedsOverflowRecalcAfterStyleChange(); |
| 400 |
| 401 bool childrenOverflowChanged = false; |
| 402 for (RenderTableSection* section = topSection(); section; section = sectionB
elow(section)) { |
| 403 if (!section->childNeedsOverflowRecalcAfterStyleChange()) |
| 404 continue; |
| 405 childrenOverflowChanged |= section->recalcChildOverflowAfterStyleChange(
); |
| 406 } |
| 407 return childrenOverflowChanged; |
| 408 } |
| 409 |
| 396 void RenderTable::layout() | 410 void RenderTable::layout() |
| 397 { | 411 { |
| 398 ASSERT(needsLayout()); | 412 ASSERT(needsLayout()); |
| 399 | 413 |
| 400 if (simplifiedLayout()) | 414 if (simplifiedLayout()) |
| 401 return; | 415 return; |
| 402 | 416 |
| 403 // Note: RenderTable is handled differently than other RenderBlocks and the
LayoutScope | 417 // Note: RenderTable is handled differently than other RenderBlocks and the
LayoutScope |
| 404 // must be created before the table begins laying out. | 418 // must be created before the table begins laying out. |
| 405 TextAutosizer::LayoutScope textAutosizerLayoutScope(this); | 419 TextAutosizer::LayoutScope textAutosizerLayoutScope(this); |
| (...skipping 931 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1337 const BorderValue& RenderTable::tableEndBorderAdjoiningCell(const RenderTableCel
l* cell) const | 1351 const BorderValue& RenderTable::tableEndBorderAdjoiningCell(const RenderTableCel
l* cell) const |
| 1338 { | 1352 { |
| 1339 ASSERT(cell->isFirstOrLastCellInRow()); | 1353 ASSERT(cell->isFirstOrLastCellInRow()); |
| 1340 if (hasSameDirectionAs(cell->row())) | 1354 if (hasSameDirectionAs(cell->row())) |
| 1341 return style()->borderEnd(); | 1355 return style()->borderEnd(); |
| 1342 | 1356 |
| 1343 return style()->borderStart(); | 1357 return style()->borderStart(); |
| 1344 } | 1358 } |
| 1345 | 1359 |
| 1346 } | 1360 } |
| OLD | NEW |