RESOLVED FIXED137273
Descendant is being put into the wrong flow thread with nested columns and spans
https://bugs.webkit.org/show_bug.cgi?id=137273
Summary Descendant is being put into the wrong flow thread with nested columns and spans
Dave Hyatt
Reported 2014-09-30 15:11:40 PDT
Descendant is being put into the wrong flow thread with nested columns and spans. See the FIXME in isValidColumnSpanner in RenderMultiColumnFlowThread.cpp.
Attachments
Patch (4.83 KB, patch)
2014-11-04 17:20 PST, Dave Hyatt
simon.fraser: review+
Dave Hyatt
Comment 1 2014-11-04 17:20:46 PST
Simon Fraser (smfr)
Comment 2 2014-11-05 09:11:58 PST
Comment on attachment 240986 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=240986&action=review > Source/WebCore/rendering/RenderMultiColumnFlowThread.cpp:387 > + placeholder.parent()->removeChild(placeholder); I think you want a "// FIXME: placeholder is leaked" here.
David Kilzer (:ddkilzer)
Comment 3 2014-11-05 09:14:19 PST
Comment on attachment 240986 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=240986&action=review > Source/WebCore/ChangeLog:20 > + The second fix was to stop destroying the placeholder. Since the placeholder can just have been inserted, you > + can't delete it, since otherwise code further up the stack will access the deleted object. For now, we just > + leak the placeholder. Would using a RenderPtr<> for the placeholder (née descendant) fix the leak/object lifetime? >> Source/WebCore/rendering/RenderMultiColumnFlowThread.cpp:387 >> - ancestorBlock.multiColumnFlowThread()->handleSpannerRemoval(spanner); >> - placeholder.destroy(); >> - >> + if (subtreeRoot == descendant) >> + subtreeRoot = spanner; >> + placeholder.parent()->removeChild(placeholder); > > I think you want a "// FIXME: placeholder is leaked" here. And a new bug number that tracks the leak please.
Dave Hyatt
Comment 4 2014-11-05 13:26:43 PST
Fixed in r175641.
Radar WebKit Bug Importer
Comment 5 2014-11-05 13:27:02 PST
David Kilzer (:ddkilzer)
Comment 6 2015-02-03 15:49:39 PST
*** Bug 137316 has been marked as a duplicate of this bug. ***
Note You need to log in before you can comment on or make changes to this bug.