Index: Source/WebCore/rendering/RenderTableRow.cpp |
=================================================================== |
--- Source/WebCore/rendering/RenderTableRow.cpp (revision 103315) |
+++ Source/WebCore/rendering/RenderTableRow.cpp (working copy) |
@@ -53,6 +53,16 @@ |
recalcSection->setNeedsCellRecalc(); |
} |
+void RenderTableRow::styleWillChange(StyleDifference diff, const RenderStyle* newStyle) |
+{ |
+ if (section() && style() && style()->logicalHeight() != newStyle->logicalHeight()) |
+ section()->setNeedsCellRecalc(); |
+ |
+ ASSERT(newStyle->display() == TABLE_ROW); |
+ |
+ RenderBox::styleWillChange(diff, newStyle); |
+} |
+ |
void RenderTableRow::updateBeforeAndAfterContent() |
{ |
if (!isAnonymous() && document()->usesBeforeAfterRules()) { |
@@ -63,17 +73,12 @@ |
void RenderTableRow::styleDidChange(StyleDifference diff, const RenderStyle* oldStyle) |
{ |
- ASSERT(style()->display() == TABLE_ROW); |
- |
RenderBox::styleDidChange(diff, oldStyle); |
propagateStyleToAnonymousChildren(); |
if (parent()) |
updateBeforeAndAfterContent(); |
- if (section() && oldStyle && style()->logicalHeight() != oldStyle->logicalHeight()) |
- section()->rowLogicalHeightChanged(section()->rowIndexForRenderer(this)); |
- |
// If border was changed, notify table. |
if (parent()) { |
RenderTable* table = this->table(); |