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 26 matching lines...) Expand all Loading... |
37 | 37 |
38 RenderTableCol::RenderTableCol(Element* element) | 38 RenderTableCol::RenderTableCol(Element* element) |
39 : RenderBox(element) | 39 : RenderBox(element) |
40 , m_span(1) | 40 , m_span(1) |
41 { | 41 { |
42 // init RenderObject attributes | 42 // init RenderObject attributes |
43 setInline(true); // our object is not Inline | 43 setInline(true); // our object is not Inline |
44 updateFromElement(); | 44 updateFromElement(); |
45 } | 45 } |
46 | 46 |
47 void RenderTableCol::trace(Visitor* visitor) | |
48 { | |
49 visitor->trace(m_children); | |
50 RenderBox::trace(visitor); | |
51 } | |
52 | |
53 void RenderTableCol::styleDidChange(StyleDifference diff, const RenderStyle* old
Style) | 47 void RenderTableCol::styleDidChange(StyleDifference diff, const RenderStyle* old
Style) |
54 { | 48 { |
55 RenderBox::styleDidChange(diff, oldStyle); | 49 RenderBox::styleDidChange(diff, oldStyle); |
56 | 50 |
57 // If border was changed, notify table. | 51 // If border was changed, notify table. |
58 if (parent()) { | 52 if (parent()) { |
59 RenderTable* table = this->table(); | 53 RenderTable* table = this->table(); |
60 if (table && !table->selfNeedsLayout() && !table->normalChildNeedsLayout
() && oldStyle && oldStyle->border() != style()->border()) | 54 if (table && !table->selfNeedsLayout() && !table->normalChildNeedsLayout
() && oldStyle && oldStyle->border() != style()->border()) |
61 table->invalidateCollapsedBorders(); | 55 table->invalidateCollapsedBorders(); |
62 } | 56 } |
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
180 return style()->borderStart(); | 174 return style()->borderStart(); |
181 } | 175 } |
182 | 176 |
183 const BorderValue& RenderTableCol::borderAdjoiningCellAfter(const RenderTableCel
l* cell) const | 177 const BorderValue& RenderTableCol::borderAdjoiningCellAfter(const RenderTableCel
l* cell) const |
184 { | 178 { |
185 ASSERT_UNUSED(cell, table()->colElement(cell->col() - 1) == this); | 179 ASSERT_UNUSED(cell, table()->colElement(cell->col() - 1) == this); |
186 return style()->borderEnd(); | 180 return style()->borderEnd(); |
187 } | 181 } |
188 | 182 |
189 } | 183 } |
OLD | NEW |