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, 2008, 2009, 2010, 2013 Apple Inc. All r
ights reserved. | 7 * Copyright (C) 2003, 2004, 2005, 2006, 2008, 2009, 2010, 2013 Apple Inc. All r
ights 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 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
73 row.logicalHeight = logicalHeight; | 73 row.logicalHeight = logicalHeight; |
74 break; | 74 break; |
75 default: | 75 default: |
76 break; | 76 break; |
77 } | 77 } |
78 } | 78 } |
79 } | 79 } |
80 | 80 |
81 void CellSpan::ensureConsistency(const unsigned maximumSpanSize) | 81 void CellSpan::ensureConsistency(const unsigned maximumSpanSize) |
82 { | 82 { |
83 static_assert(WTF::IsSameType<decltype(m_start), unsigned>::value, "Asserts
below assume m_start is unsigned"); | 83 static_assert(std::is_same<decltype(m_start), unsigned>::value, "Asserts bel
ow assume m_start is unsigned"); |
84 static_assert(WTF::IsSameType<decltype(m_end), unsigned>::value, "Asserts be
low assume m_end is unsigned"); | 84 static_assert(std::is_same<decltype(m_end), unsigned>::value, "Asserts below
assume m_end is unsigned"); |
85 RELEASE_ASSERT(m_start <= maximumSpanSize); | 85 RELEASE_ASSERT(m_start <= maximumSpanSize); |
86 RELEASE_ASSERT(m_end <= maximumSpanSize); | 86 RELEASE_ASSERT(m_end <= maximumSpanSize); |
87 RELEASE_ASSERT(m_start <= m_end); | 87 RELEASE_ASSERT(m_start <= m_end); |
88 } | 88 } |
89 | 89 |
90 LayoutTableSection::LayoutTableSection(Element* element) | 90 LayoutTableSection::LayoutTableSection(Element* element) |
91 : LayoutBox(element) | 91 : LayoutBox(element) |
92 , m_cCol(0) | 92 , m_cCol(0) |
93 , m_cRow(0) | 93 , m_cRow(0) |
94 , m_outerBorderStart(0) | 94 , m_outerBorderStart(0) |
(...skipping 1576 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1671 // FIXME: The table's direction should determine our row's direction, not th
e section's (see bug 96691). | 1671 // FIXME: The table's direction should determine our row's direction, not th
e section's (see bug 96691). |
1672 if (!style()->isLeftToRightDirection()) | 1672 if (!style()->isLeftToRightDirection()) |
1673 cellLocation.setX(table()->columnPositions()[table()->numEffCols()] - ta
ble()->columnPositions()[table()->colToEffCol(cell->col() + cell->colSpan())] +
horizontalBorderSpacing); | 1673 cellLocation.setX(table()->columnPositions()[table()->numEffCols()] - ta
ble()->columnPositions()[table()->colToEffCol(cell->col() + cell->colSpan())] +
horizontalBorderSpacing); |
1674 else | 1674 else |
1675 cellLocation.setX(table()->columnPositions()[effectiveColumn] + horizont
alBorderSpacing); | 1675 cellLocation.setX(table()->columnPositions()[effectiveColumn] + horizont
alBorderSpacing); |
1676 | 1676 |
1677 cell->setLogicalLocation(cellLocation); | 1677 cell->setLogicalLocation(cellLocation); |
1678 } | 1678 } |
1679 | 1679 |
1680 } // namespace blink | 1680 } // namespace blink |
OLD | NEW |