| 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 Apple Inc. All rights reserved. | 7 * Copyright (C) 2003, 2004, 2005, 2006, 2009 Apple Inc. All rights reserved. |
| 8 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) | 8 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) |
| 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 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 134 | 134 |
| 135 for (LayoutObject* child = firstChild(); child; child = child->nextSibling()
) | 135 for (LayoutObject* child = firstChild(); child; child = child->nextSibling()
) |
| 136 child->clearPreferredLogicalWidthsDirty(); | 136 child->clearPreferredLogicalWidthsDirty(); |
| 137 } | 137 } |
| 138 | 138 |
| 139 LayoutTable* LayoutTableCol::table() const | 139 LayoutTable* LayoutTableCol::table() const |
| 140 { | 140 { |
| 141 LayoutObject* table = parent(); | 141 LayoutObject* table = parent(); |
| 142 if (table && !table->isTable()) | 142 if (table && !table->isTable()) |
| 143 table = table->parent(); | 143 table = table->parent(); |
| 144 return table && table->isTable() ? toLayoutTable(table) : 0; | 144 return table && table->isTable() ? toLayoutTable(table) : nullptr; |
| 145 } | 145 } |
| 146 | 146 |
| 147 LayoutTableCol* LayoutTableCol::enclosingColumnGroup() const | 147 LayoutTableCol* LayoutTableCol::enclosingColumnGroup() const |
| 148 { | 148 { |
| 149 if (!parent()->isLayoutTableCol()) | 149 if (!parent()->isLayoutTableCol()) |
| 150 return 0; | 150 return nullptr; |
| 151 | 151 |
| 152 LayoutTableCol* parentColumnGroup = toLayoutTableCol(parent()); | 152 LayoutTableCol* parentColumnGroup = toLayoutTableCol(parent()); |
| 153 ASSERT(parentColumnGroup->isTableColumnGroup()); | 153 ASSERT(parentColumnGroup->isTableColumnGroup()); |
| 154 ASSERT(isTableColumn()); | 154 ASSERT(isTableColumn()); |
| 155 return parentColumnGroup; | 155 return parentColumnGroup; |
| 156 } | 156 } |
| 157 | 157 |
| 158 LayoutTableCol* LayoutTableCol::nextColumn() const | 158 LayoutTableCol* LayoutTableCol::nextColumn() const |
| 159 { | 159 { |
| 160 // If |this| is a column-group, the next column is the colgroup's first chil
d column. | 160 // If |this| is a column-group, the next column is the colgroup's first chil
d column. |
| (...skipping 28 matching lines...) Expand all Loading... |
| 189 return style()->borderStart(); | 189 return style()->borderStart(); |
| 190 } | 190 } |
| 191 | 191 |
| 192 const BorderValue& LayoutTableCol::borderAdjoiningCellAfter(const LayoutTableCel
l* cell) const | 192 const BorderValue& LayoutTableCol::borderAdjoiningCellAfter(const LayoutTableCel
l* cell) const |
| 193 { | 193 { |
| 194 ASSERT_UNUSED(cell, table()->colElement(cell->col() - 1) == this); | 194 ASSERT_UNUSED(cell, table()->colElement(cell->col() - 1) == this); |
| 195 return style()->borderEnd(); | 195 return style()->borderEnd(); |
| 196 } | 196 } |
| 197 | 197 |
| 198 } | 198 } |
| OLD | NEW |