| 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 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 90 , m_hasMultipleCellLevels(false) | 90 , m_hasMultipleCellLevels(false) |
| 91 { | 91 { |
| 92 // init RenderObject attributes | 92 // init RenderObject attributes |
| 93 setInline(false); // our object is not Inline | 93 setInline(false); // our object is not Inline |
| 94 } | 94 } |
| 95 | 95 |
| 96 RenderTableSection::~RenderTableSection() | 96 RenderTableSection::~RenderTableSection() |
| 97 { | 97 { |
| 98 } | 98 } |
| 99 | 99 |
| 100 void RenderTableSection::trace(Visitor* visitor) | |
| 101 { | |
| 102 visitor->trace(m_children); | |
| 103 RenderBox::trace(visitor); | |
| 104 } | |
| 105 | |
| 106 void RenderTableSection::styleDidChange(StyleDifference diff, const RenderStyle*
oldStyle) | 100 void RenderTableSection::styleDidChange(StyleDifference diff, const RenderStyle*
oldStyle) |
| 107 { | 101 { |
| 108 RenderBox::styleDidChange(diff, oldStyle); | 102 RenderBox::styleDidChange(diff, oldStyle); |
| 109 propagateStyleToAnonymousChildren(); | 103 propagateStyleToAnonymousChildren(); |
| 110 | 104 |
| 111 // If border was changed, notify table. | 105 // If border was changed, notify table. |
| 112 RenderTable* table = this->table(); | 106 RenderTable* table = this->table(); |
| 113 if (table && !table->selfNeedsLayout() && !table->normalChildNeedsLayout() &
& oldStyle && oldStyle->border() != style()->border()) | 107 if (table && !table->selfNeedsLayout() && !table->normalChildNeedsLayout() &
& oldStyle && oldStyle->border() != style()->border()) |
| 114 table->invalidateCollapsedBorders(); | 108 table->invalidateCollapsedBorders(); |
| 115 } | 109 } |
| (...skipping 1595 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1711 // FIXME: The table's direction should determine our row's direction, not th
e section's (see bug 96691). | 1705 // FIXME: The table's direction should determine our row's direction, not th
e section's (see bug 96691). |
| 1712 if (!style()->isLeftToRightDirection()) | 1706 if (!style()->isLeftToRightDirection()) |
| 1713 cellLocation.setX(table()->columnPositions()[table()->numEffCols()] - ta
ble()->columnPositions()[table()->colToEffCol(cell->col() + cell->colSpan())] +
horizontalBorderSpacing); | 1707 cellLocation.setX(table()->columnPositions()[table()->numEffCols()] - ta
ble()->columnPositions()[table()->colToEffCol(cell->col() + cell->colSpan())] +
horizontalBorderSpacing); |
| 1714 else | 1708 else |
| 1715 cellLocation.setX(table()->columnPositions()[effectiveColumn] + horizont
alBorderSpacing); | 1709 cellLocation.setX(table()->columnPositions()[effectiveColumn] + horizont
alBorderSpacing); |
| 1716 | 1710 |
| 1717 cell->setLogicalLocation(cellLocation); | 1711 cell->setLogicalLocation(cellLocation); |
| 1718 } | 1712 } |
| 1719 | 1713 |
| 1720 } // namespace blink | 1714 } // namespace blink |
| OLD | NEW |