Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(148)

Unified Diff: Source/WebCore/rendering/RenderTableCell.cpp

Issue 8989014: Revert 99212 - Stop abusing RenderTableSection::needsRecalcCells logic (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/963/
Patch Set: Created 9 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/WebCore/rendering/RenderTableCell.h ('k') | Source/WebCore/rendering/RenderTableRow.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/WebCore/rendering/RenderTableCell.cpp
===================================================================
--- Source/WebCore/rendering/RenderTableCell.cpp (revision 103315)
+++ Source/WebCore/rendering/RenderTableCell.cpp (working copy)
@@ -310,16 +310,21 @@
return paddingBefore() + borderBefore() + contentLogicalHeight();
}
+void RenderTableCell::styleWillChange(StyleDifference diff, const RenderStyle* newStyle)
+{
+ if (parent() && section() && style() && style()->height() != newStyle->height())
+ section()->setNeedsCellRecalc();
+
+ ASSERT(newStyle->display() == TABLE_CELL);
+
+ RenderBlock::styleWillChange(diff, newStyle);
+}
+
void RenderTableCell::styleDidChange(StyleDifference diff, const RenderStyle* oldStyle)
{
- ASSERT(style()->display() == TABLE_CELL);
-
RenderBlock::styleDidChange(diff, oldStyle);
setHasBoxDecorations(true);
- if (parent() && section() && oldStyle && style()->height() != oldStyle->height() && rowWasSet())
- section()->rowLogicalHeightChanged(row());
-
// If border was changed, notify table.
if (parent()) {
RenderTable* table = this->table();
« no previous file with comments | « Source/WebCore/rendering/RenderTableCell.h ('k') | Source/WebCore/rendering/RenderTableRow.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698