| 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 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 160 // column is the next column/column-group after its column-group. | 160 // column is the next column/column-group after its column-group. |
| 161 if (!next && Parent()->IsLayoutTableCol()) | 161 if (!next && Parent()->IsLayoutTableCol()) |
| 162 next = Parent()->NextSibling(); | 162 next = Parent()->NextSibling(); |
| 163 | 163 |
| 164 for (; next && !next->IsLayoutTableCol(); next = next->NextSibling()) { | 164 for (; next && !next->IsLayoutTableCol(); next = next->NextSibling()) { |
| 165 } | 165 } |
| 166 | 166 |
| 167 return ToLayoutTableCol(next); | 167 return ToLayoutTableCol(next); |
| 168 } | 168 } |
| 169 | 169 |
| 170 const BorderValue& LayoutTableCol::BorderAdjoiningCellStartBorder( | 170 BorderValue LayoutTableCol::BorderAdjoiningCellStartBorder( |
| 171 const LayoutTableCell*) const { | 171 const LayoutTableCell*) const { |
| 172 return Style()->BorderStart(); | 172 return Style()->BorderStart(); |
| 173 } | 173 } |
| 174 | 174 |
| 175 const BorderValue& LayoutTableCol::BorderAdjoiningCellEndBorder( | 175 BorderValue LayoutTableCol::BorderAdjoiningCellEndBorder( |
| 176 const LayoutTableCell*) const { | 176 const LayoutTableCell*) const { |
| 177 return Style()->BorderEnd(); | 177 return Style()->BorderEnd(); |
| 178 } | 178 } |
| 179 | 179 |
| 180 const BorderValue& LayoutTableCol::BorderAdjoiningCellBefore( | 180 BorderValue LayoutTableCol::BorderAdjoiningCellBefore( |
| 181 const LayoutTableCell* cell) const { | 181 const LayoutTableCell* cell) const { |
| 182 DCHECK_EQ(Table() | 182 DCHECK_EQ(Table() |
| 183 ->ColElementAtAbsoluteColumn(cell->AbsoluteColumnIndex() + | 183 ->ColElementAtAbsoluteColumn(cell->AbsoluteColumnIndex() + |
| 184 cell->ColSpan()) | 184 cell->ColSpan()) |
| 185 .InnermostColOrColGroup(), | 185 .InnermostColOrColGroup(), |
| 186 this); | 186 this); |
| 187 return Style()->BorderStart(); | 187 return Style()->BorderStart(); |
| 188 } | 188 } |
| 189 | 189 |
| 190 const BorderValue& LayoutTableCol::BorderAdjoiningCellAfter( | 190 BorderValue LayoutTableCol::BorderAdjoiningCellAfter( |
| 191 const LayoutTableCell* cell) const { | 191 const LayoutTableCell* cell) const { |
| 192 DCHECK_EQ(Table() | 192 DCHECK_EQ(Table() |
| 193 ->ColElementAtAbsoluteColumn(cell->AbsoluteColumnIndex() - 1) | 193 ->ColElementAtAbsoluteColumn(cell->AbsoluteColumnIndex() - 1) |
| 194 .InnermostColOrColGroup(), | 194 .InnermostColOrColGroup(), |
| 195 this); | 195 this); |
| 196 return Style()->BorderEnd(); | 196 return Style()->BorderEnd(); |
| 197 } | 197 } |
| 198 | 198 |
| 199 } // namespace blink | 199 } // namespace blink |
| OLD | NEW |