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. | 7 * Copyright (C) 2003, 2004, 2005, 2006, 2008, 2009, 2010, 2013 Apple Inc. |
8 * All rights reserved. | 8 * All rights reserved. |
9 * Copyright (C) 2006 Alexey Proskuryakov (ap@nypop.com) | 9 * Copyright (C) 2006 Alexey Proskuryakov (ap@nypop.com) |
10 * | 10 * |
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
124 LayoutTableBoxComponent::StyleDidChange(diff, old_style); | 124 LayoutTableBoxComponent::StyleDidChange(diff, old_style); |
125 PropagateStyleToAnonymousChildren(); | 125 PropagateStyleToAnonymousChildren(); |
126 | 126 |
127 if (!old_style) | 127 if (!old_style) |
128 return; | 128 return; |
129 | 129 |
130 LayoutTable* table = this->Table(); | 130 LayoutTable* table = this->Table(); |
131 if (!table) | 131 if (!table) |
132 return; | 132 return; |
133 | 133 |
134 if (!table->SelfNeedsLayout() && !table->NormalChildNeedsLayout() && | 134 LayoutTableBoxComponent::InvalidateCollapsedBordersOnStyleChange( |
135 old_style->Border() != Style()->Border()) | 135 *this, *table, diff, *old_style); |
136 table->InvalidateCollapsedBorders(); | |
137 | 136 |
138 if (LayoutTableBoxComponent::DoCellsHaveDirtyWidth(*this, *table, diff, | 137 if (LayoutTableBoxComponent::DoCellsHaveDirtyWidth(*this, *table, diff, |
139 *old_style)) | 138 *old_style)) |
140 MarkAllCellsWidthsDirtyAndOrNeedsLayout( | 139 MarkAllCellsWidthsDirtyAndOrNeedsLayout( |
141 LayoutTable::kMarkDirtyAndNeedsLayout); | 140 LayoutTable::kMarkDirtyAndNeedsLayout); |
142 } | 141 } |
143 | 142 |
144 void LayoutTableSection::WillBeRemovedFromTree() { | 143 void LayoutTableSection::WillBeRemovedFromTree() { |
145 LayoutTableBoxComponent::WillBeRemovedFromTree(); | 144 LayoutTableBoxComponent::WillBeRemovedFromTree(); |
146 | 145 |
(...skipping 2020 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2167 bool LayoutTableSection::PaintedOutputOfObjectHasNoEffectRegardlessOfSize() | 2166 bool LayoutTableSection::PaintedOutputOfObjectHasNoEffectRegardlessOfSize() |
2168 const { | 2167 const { |
2169 // LayoutTableSection paints background from columns. | 2168 // LayoutTableSection paints background from columns. |
2170 if (Table()->HasColElements()) | 2169 if (Table()->HasColElements()) |
2171 return false; | 2170 return false; |
2172 return LayoutTableBoxComponent:: | 2171 return LayoutTableBoxComponent:: |
2173 PaintedOutputOfObjectHasNoEffectRegardlessOfSize(); | 2172 PaintedOutputOfObjectHasNoEffectRegardlessOfSize(); |
2174 } | 2173 } |
2175 | 2174 |
2176 } // namespace blink | 2175 } // namespace blink |
OLD | NEW |