| 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, 2009, 2010 Apple Inc. | 7 * Copyright (C) 2003, 2004, 2005, 2006, 2009, 2010 Apple Inc. |
| 8 * All rights reserved. | 8 * All rights reserved. |
| 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 327 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 338 return LayoutUnit(LayoutBlock::paddingEnd().toInt()); | 338 return LayoutUnit(LayoutBlock::paddingEnd().toInt()); |
| 339 } | 339 } |
| 340 LayoutUnit paddingStart() const override { | 340 LayoutUnit paddingStart() const override { |
| 341 return LayoutUnit(LayoutBlock::paddingStart().toInt()); | 341 return LayoutUnit(LayoutBlock::paddingStart().toInt()); |
| 342 } | 342 } |
| 343 | 343 |
| 344 LayoutUnit bordersPaddingAndSpacingInRowDirection() const { | 344 LayoutUnit bordersPaddingAndSpacingInRowDirection() const { |
| 345 // 'border-spacing' only applies to separate borders (see 17.6.1 The | 345 // 'border-spacing' only applies to separate borders (see 17.6.1 The |
| 346 // separated borders model). | 346 // separated borders model). |
| 347 return borderStart() + borderEnd() + | 347 return borderStart() + borderEnd() + |
| 348 (collapseBorders() ? LayoutUnit() : (paddingStart() + paddingEnd() + | 348 (collapseBorders() ? LayoutUnit() |
| 349 borderSpacingInRowDirection())); | 349 : (paddingStart() + paddingEnd() + |
| 350 borderSpacingInRowDirection())); |
| 350 } | 351 } |
| 351 | 352 |
| 352 // Return the first column or column-group. | 353 // Return the first column or column-group. |
| 353 LayoutTableCol* firstColumn() const; | 354 LayoutTableCol* firstColumn() const; |
| 354 | 355 |
| 355 struct ColAndColGroup { | 356 struct ColAndColGroup { |
| 356 ColAndColGroup() | 357 ColAndColGroup() |
| 357 : col(nullptr), | 358 : col(nullptr), |
| 358 colgroup(nullptr), | 359 colgroup(nullptr), |
| 359 adjoinsStartBorderOfColGroup(false), | 360 adjoinsStartBorderOfColGroup(false), |
| (...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 608 if (m_firstBody) | 609 if (m_firstBody) |
| 609 return m_firstBody; | 610 return m_firstBody; |
| 610 return m_foot; | 611 return m_foot; |
| 611 } | 612 } |
| 612 | 613 |
| 613 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutTable, isTable()); | 614 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutTable, isTable()); |
| 614 | 615 |
| 615 } // namespace blink | 616 } // namespace blink |
| 616 | 617 |
| 617 #endif // LayoutTable_h | 618 #endif // LayoutTable_h |
| OLD | NEW |