| 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 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 138 ~LayoutTable() override; | 138 ~LayoutTable() override; |
| 139 | 139 |
| 140 // Per CSS 3 writing-mode: "The first and second values of the | 140 // Per CSS 3 writing-mode: "The first and second values of the |
| 141 // 'border-spacing' property represent spacing between columns and rows | 141 // 'border-spacing' property represent spacing between columns and rows |
| 142 // respectively, not necessarily the horizontal and vertical spacing | 142 // respectively, not necessarily the horizontal and vertical spacing |
| 143 // respectively". | 143 // respectively". |
| 144 int hBorderSpacing() const { return m_hSpacing; } | 144 int hBorderSpacing() const { return m_hSpacing; } |
| 145 int vBorderSpacing() const { return m_vSpacing; } | 145 int vBorderSpacing() const { return m_vSpacing; } |
| 146 | 146 |
| 147 bool collapseBorders() const { | 147 bool collapseBorders() const { |
| 148 return style()->borderCollapse() == EBorderCollapse::Collapse; | 148 return style()->borderCollapse() == EBorderCollapse::kCollapse; |
| 149 } | 149 } |
| 150 | 150 |
| 151 int borderStart() const override { return m_borderStart; } | 151 int borderStart() const override { return m_borderStart; } |
| 152 int borderEnd() const override { return m_borderEnd; } | 152 int borderEnd() const override { return m_borderEnd; } |
| 153 int borderBefore() const override; | 153 int borderBefore() const override; |
| 154 int borderAfter() const override; | 154 int borderAfter() const override; |
| 155 | 155 |
| 156 int borderLeft() const override { | 156 int borderLeft() const override { |
| 157 if (style()->isHorizontalWritingMode()) | 157 if (style()->isHorizontalWritingMode()) |
| 158 return style()->isLeftToRightDirection() ? borderStart() : borderEnd(); | 158 return style()->isLeftToRightDirection() ? borderStart() : borderEnd(); |
| (...skipping 433 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 592 if (m_firstBody) | 592 if (m_firstBody) |
| 593 return m_firstBody; | 593 return m_firstBody; |
| 594 return m_foot; | 594 return m_foot; |
| 595 } | 595 } |
| 596 | 596 |
| 597 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutTable, isTable()); | 597 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutTable, isTable()); |
| 598 | 598 |
| 599 } // namespace blink | 599 } // namespace blink |
| 600 | 600 |
| 601 #endif // LayoutTable_h | 601 #endif // LayoutTable_h |
| OLD | NEW |