| 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 1319 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1330 return topNonEmptySection->logicalTop() + baseline; | 1330 return topNonEmptySection->logicalTop() + baseline; |
| 1331 | 1331 |
| 1332 // FF, Presto and IE use the top of the section as the baseline if its first
row is empty of cells or content. | 1332 // FF, Presto and IE use the top of the section as the baseline if its first
row is empty of cells or content. |
| 1333 // The baseline of an empty row isn't specified by CSS 2.1. | 1333 // The baseline of an empty row isn't specified by CSS 2.1. |
| 1334 if (topNonEmptySection->firstRow() && !topNonEmptySection->firstRow()->first
Cell()) | 1334 if (topNonEmptySection->firstRow() && !topNonEmptySection->firstRow()->first
Cell()) |
| 1335 return topNonEmptySection->logicalTop(); | 1335 return topNonEmptySection->logicalTop(); |
| 1336 | 1336 |
| 1337 return -1; | 1337 return -1; |
| 1338 } | 1338 } |
| 1339 | 1339 |
| 1340 LayoutRect LayoutTable::overflowClipRect(const LayoutPoint& location, OverlayScr
ollbarSizeRelevancy relevancy) const | 1340 LayoutRect LayoutTable::overflowClipRect(const LayoutPoint& location, OverlayScr
ollbarClipBehavior overlayScrollbarClipBehavior) const |
| 1341 { | 1341 { |
| 1342 LayoutRect rect = LayoutBlock::overflowClipRect(location, relevancy); | 1342 LayoutRect rect = LayoutBlock::overflowClipRect(location, overlayScrollbarCl
ipBehavior); |
| 1343 | 1343 |
| 1344 // If we have a caption, expand the clip to include the caption. | 1344 // If we have a caption, expand the clip to include the caption. |
| 1345 // FIXME: Technically this is wrong, but it's virtually impossible to fix th
is | 1345 // FIXME: Technically this is wrong, but it's virtually impossible to fix th
is |
| 1346 // for real until captions have been re-written. | 1346 // for real until captions have been re-written. |
| 1347 // FIXME: This code assumes (like all our other caption code) that only top/
bottom are | 1347 // FIXME: This code assumes (like all our other caption code) that only top/
bottom are |
| 1348 // supported. When we actually support left/right and stop mapping them to
top/bottom, | 1348 // supported. When we actually support left/right and stop mapping them to
top/bottom, |
| 1349 // we might have to hack this code first (depending on what order we do thes
e bug fixes in). | 1349 // we might have to hack this code first (depending on what order we do thes
e bug fixes in). |
| 1350 if (!m_captions.isEmpty()) { | 1350 if (!m_captions.isEmpty()) { |
| 1351 if (style()->isHorizontalWritingMode()) { | 1351 if (style()->isHorizontalWritingMode()) { |
| 1352 rect.setHeight(size().height()); | 1352 rect.setHeight(size().height()); |
| (...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1480 | 1480 |
| 1481 LayoutUnit LayoutTable::paddingRight() const | 1481 LayoutUnit LayoutTable::paddingRight() const |
| 1482 { | 1482 { |
| 1483 if (collapseBorders()) | 1483 if (collapseBorders()) |
| 1484 return LayoutUnit(); | 1484 return LayoutUnit(); |
| 1485 | 1485 |
| 1486 return LayoutBlock::paddingRight(); | 1486 return LayoutBlock::paddingRight(); |
| 1487 } | 1487 } |
| 1488 | 1488 |
| 1489 } // namespace blink | 1489 } // namespace blink |
| OLD | NEW |