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

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

Issue 10909089: Merge 126251 (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1229/
Patch Set: Created 8 years, 3 months 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/RenderTableSection.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/WebCore/rendering/RenderTableSection.cpp
===================================================================
--- Source/WebCore/rendering/RenderTableSection.cpp (revision 127658)
+++ Source/WebCore/rendering/RenderTableSection.cpp (working copy)
@@ -114,16 +114,13 @@
table->invalidateCollapsedBorders();
}
-void RenderTableSection::willBeDestroyed()
+void RenderTableSection::willBeRemovedFromTree()
{
- RenderTable* recalcTable = table();
-
- RenderBox::willBeDestroyed();
-
- // recalc cell info because RenderTable has unguarded pointers
- // stored that point to this RenderTableSection.
- if (recalcTable)
- recalcTable->setNeedsSectionRecalc();
+ RenderBox::willBeRemovedFromTree();
+
+ // Preventively invalidate our cells as we may be re-inserted into
+ // a new table which would require us to rebuild our structure.
+ setNeedsCellRecalc();
}
void RenderTableSection::addChild(RenderObject* child, RenderObject* beforeChild)
« no previous file with comments | « Source/WebCore/rendering/RenderTableSection.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698