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 393 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
404 // must be created before the table begins laying out. | 404 // must be created before the table begins laying out. |
405 TextAutosizer::LayoutScope textAutosizerLayoutScope(this); | 405 TextAutosizer::LayoutScope textAutosizerLayoutScope(this); |
406 | 406 |
407 recalcSectionsIfNeeded(); | 407 recalcSectionsIfNeeded(); |
408 // FIXME: We should do this recalc lazily in borderStart/borderEnd so that w
e don't have to make sure | 408 // FIXME: We should do this recalc lazily in borderStart/borderEnd so that w
e don't have to make sure |
409 // to call this before we call borderStart/borderEnd to avoid getting a stal
e value. | 409 // to call this before we call borderStart/borderEnd to avoid getting a stal
e value. |
410 recalcBordersInRowDirection(); | 410 recalcBordersInRowDirection(); |
411 | 411 |
412 SubtreeLayoutScope layouter(*this); | 412 SubtreeLayoutScope layouter(*this); |
413 | 413 |
414 // If any table section moved vertically, we will just repaint everything fr
om that | 414 // If any table section moved vertically, we will just issue paint invalidat
ions for everything from that |
415 // section down (it is quite unlikely that any of the following sections | 415 // section down (it is quite unlikely that any of the following sections |
416 // did not shift). | 416 // did not shift). |
417 bool sectionMoved = false; | 417 bool sectionMoved = false; |
418 LayoutUnit movedSectionLogicalTop = 0; | 418 LayoutUnit movedSectionLogicalTop = 0; |
419 { | 419 { |
420 LayoutState state(*this, locationOffset()); | 420 LayoutState state(*this, locationOffset()); |
421 | 421 |
422 setLogicalHeight(0); | 422 setLogicalHeight(0); |
423 | 423 |
424 LayoutUnit oldLogicalWidth = logicalWidth(); | 424 LayoutUnit oldLogicalWidth = logicalWidth(); |
(...skipping 992 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1417 const BorderValue& RenderTable::tableEndBorderAdjoiningCell(const RenderTableCel
l* cell) const | 1417 const BorderValue& RenderTable::tableEndBorderAdjoiningCell(const RenderTableCel
l* cell) const |
1418 { | 1418 { |
1419 ASSERT(cell->isFirstOrLastCellInRow()); | 1419 ASSERT(cell->isFirstOrLastCellInRow()); |
1420 if (hasSameDirectionAs(cell->row())) | 1420 if (hasSameDirectionAs(cell->row())) |
1421 return style()->borderEnd(); | 1421 return style()->borderEnd(); |
1422 | 1422 |
1423 return style()->borderStart(); | 1423 return style()->borderStart(); |
1424 } | 1424 } |
1425 | 1425 |
1426 } | 1426 } |
OLD | NEW |