Chromium Code Reviews

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

Issue 8478022: Merge 98763 (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/874/
Patch Set: Created 9 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
« no previous file with comments | « LayoutTests/fast/css-generated-content/inline-splitting-with-after-float-crash-expected.txt ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/WebCore/rendering/RenderBlock.cpp
===================================================================
--- Source/WebCore/rendering/RenderBlock.cpp (revision 99347)
+++ Source/WebCore/rendering/RenderBlock.cpp (working copy)
@@ -836,6 +836,15 @@
void RenderBlock::deleteLineBoxTree()
{
+ if (containsFloats()) {
+ // Clear references to originating lines, since the lines are being deleted
+ const FloatingObjectSet& floatingObjectSet = m_floatingObjects->set();
+ FloatingObjectSetIterator end = floatingObjectSet.end();
+ for (FloatingObjectSetIterator it = floatingObjectSet.begin(); it != end; ++it) {
+ ASSERT(!((*it)->m_originatingLine) || (*it)->m_originatingLine->renderer() == this);
+ (*it)->m_originatingLine = 0;
+ }
+ }
m_lineBoxes.deleteLineBoxTree(renderArena());
}
Property changes on: Source/WebCore/rendering/RenderBlock.cpp
___________________________________________________________________
Added: svn:executable
+ *
« no previous file with comments | « LayoutTests/fast/css-generated-content/inline-splitting-with-after-float-crash-expected.txt ('k') | no next file » | no next file with comments »

Powered by Google App Engine