Bug 182518

Summary: [RenderTreeBuilder] Remove RenderElement::destroyLeftoverChildren.
Product: WebKit Reporter: zalan <zalan>
Component: Layout and RenderingAssignee: zalan <zalan>
Status: RESOLVED FIXED    
Severity: Normal CC: bfulgham, commit-queue, ews-watchlist, koivisto, rniwa, simon.fraser, webkit-bug-importer, zalan
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch
none
Patch
none
Patch
none
Archive of layout-test-results from ews201 for win-future
none
Archive of layout-test-results from ews200 for win-future
none
Patch
none
Archive of layout-test-results from ews100 for mac-sierra
none
Archive of layout-test-results from ews204 for win-future
none
Patch
none
Patch
none
Patch
none
Patch none

zalan
Reported 2018-02-05 16:57:35 PST
delete them right before destroying the parent.
Attachments
Patch (6.83 KB, patch)
2018-02-05 17:02 PST, zalan
no flags
Patch (7.41 KB, patch)
2018-02-06 13:45 PST, zalan
no flags
Patch (7.50 KB, patch)
2018-02-06 13:52 PST, zalan
no flags
Archive of layout-test-results from ews201 for win-future (10.79 MB, application/zip)
2018-02-06 16:33 PST, EWS Watchlist
no flags
Archive of layout-test-results from ews200 for win-future (11.58 MB, application/zip)
2018-02-06 18:13 PST, EWS Watchlist
no flags
Patch (7.59 KB, patch)
2018-02-06 19:24 PST, zalan
no flags
Archive of layout-test-results from ews100 for mac-sierra (2.26 MB, application/zip)
2018-02-06 20:42 PST, EWS Watchlist
no flags
Archive of layout-test-results from ews204 for win-future (11.50 MB, application/zip)
2018-02-06 21:47 PST, EWS Watchlist
no flags
Patch (7.40 KB, patch)
2018-02-06 22:12 PST, zalan
no flags
Patch (7.21 KB, patch)
2018-02-07 10:19 PST, zalan
no flags
Patch (7.37 KB, patch)
2018-02-07 10:28 PST, zalan
no flags
Patch (7.36 KB, patch)
2018-02-07 11:18 PST, zalan
no flags
Radar WebKit Bug Importer
Comment 1 2018-02-05 17:00:13 PST
zalan
Comment 2 2018-02-05 17:02:09 PST
zalan
Comment 3 2018-02-06 13:45:12 PST
zalan
Comment 4 2018-02-06 13:52:48 PST
EWS Watchlist
Comment 5 2018-02-06 16:33:23 PST
Comment on attachment 333213 [details] Patch Attachment 333213 [details] did not pass win-ews (win): Output: http://webkit-queues.webkit.org/results/6389312 New failing tests: fast/parser/area-in-div.html
EWS Watchlist
Comment 6 2018-02-06 16:33:33 PST
Created attachment 333234 [details] Archive of layout-test-results from ews201 for win-future The attached test failures were seen while running run-webkit-tests on the win-ews. Bot: ews201 Port: win-future Platform: CYGWIN_NT-6.1-2.9.0-0.318-5-3-x86_64-64bit
EWS Watchlist
Comment 7 2018-02-06 18:13:15 PST
Comment on attachment 333213 [details] Patch Attachment 333213 [details] did not pass win-ews (win): Output: http://webkit-queues.webkit.org/results/6390379 New failing tests: fast/parser/area-in-div.html
EWS Watchlist
Comment 8 2018-02-06 18:13:26 PST
Created attachment 333244 [details] Archive of layout-test-results from ews200 for win-future The attached test failures were seen while running run-webkit-tests on the win-ews. Bot: ews200 Port: win-future Platform: CYGWIN_NT-6.1-2.9.0-0.318-5-3-x86_64-64bit
zalan
Comment 9 2018-02-06 19:24:18 PST
EWS Watchlist
Comment 10 2018-02-06 20:42:00 PST
Comment on attachment 333257 [details] Patch Attachment 333257 [details] did not pass mac-ews (mac): Output: http://webkit-queues.webkit.org/results/6393272 New failing tests: media/modern-media-controls/tracks-support/tracks-support-show-panel-after-dragging-controls.html
EWS Watchlist
Comment 11 2018-02-06 20:42:01 PST
Created attachment 333261 [details] Archive of layout-test-results from ews100 for mac-sierra The attached test failures were seen while running run-webkit-tests on the mac-ews. Bot: ews100 Port: mac-sierra Platform: Mac OS X 10.12.6
EWS Watchlist
Comment 12 2018-02-06 21:47:45 PST
Comment on attachment 333257 [details] Patch Attachment 333257 [details] did not pass win-ews (win): Output: http://webkit-queues.webkit.org/results/6393515 New failing tests: fast/parser/area-in-div.html
EWS Watchlist
Comment 13 2018-02-06 21:47:55 PST
Created attachment 333263 [details] Archive of layout-test-results from ews204 for win-future The attached test failures were seen while running run-webkit-tests on the win-ews. Bot: ews204 Port: win-future Platform: CYGWIN_NT-6.1-2.9.0-0.318-5-3-x86_64-64bit
zalan
Comment 14 2018-02-06 22:12:49 PST
Antti Koivisto
Comment 15 2018-02-07 01:34:16 PST
Comment on attachment 333266 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=333266&action=review > Source/WebCore/rendering/RenderObject.cpp:-1481 > RELEASE_ASSERT(!m_bitfields.beingDestroyed()); > > - if (is<RenderElement>(*this)) > - downcast<RenderElement>(*this).destroyLeftoverChildren(); Can we assert here there are no leftover children? > LayoutTests/TestExpectations:1706 > +webkit.org/b/182547 fast/parser/append-child-followed-by-document-write.html [ Pass Crash ] > +webkit.org/b/182547 fast/parser/area-in-div.html [ Pass Crash ] We shouldn't land crashes
zalan
Comment 16 2018-02-07 08:19:48 PST
(In reply to Antti Koivisto from comment #15) > Comment on attachment 333266 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=333266&action=review > > > Source/WebCore/rendering/RenderObject.cpp:-1481 > > RELEASE_ASSERT(!m_bitfields.beingDestroyed()); > > > > - if (is<RenderElement>(*this)) > > - downcast<RenderElement>(*this).destroyLeftoverChildren(); > > Can we assert here there are no leftover children? I added the assertion to RenderElement d'tor. RenderObjects can't have children.
zalan
Comment 17 2018-02-07 10:19:07 PST
zalan
Comment 18 2018-02-07 10:28:06 PST
Antti Koivisto
Comment 19 2018-02-07 10:36:17 PST
Comment on attachment 333303 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=333303&action=review > Source/WebCore/rendering/RenderView.cpp:619 > + if (firstChild()) { > + ASSERT(!firstChild()->nextSibling()); Are you sure there can never be more than one of these?
zalan
Comment 20 2018-02-07 10:49:39 PST
(In reply to Antti Koivisto from comment #19) > Comment on attachment 333303 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=333303&action=review > > > Source/WebCore/rendering/RenderView.cpp:619 > > + if (firstChild()) { > > + ASSERT(!firstChild()->nextSibling()); > > Are you sure there can never be more than one of these? Let me test it.
Antti Koivisto
Comment 21 2018-02-07 11:02:15 PST
(In reply to zalan from comment #20) > Let me test it. Might be easier to just turn this into a loop.
zalan
Comment 22 2018-02-07 11:18:22 PST
Antti Koivisto
Comment 23 2018-02-07 11:21:08 PST
Comment on attachment 333306 [details] Patch r=me
WebKit Commit Bot
Comment 24 2018-02-07 11:52:50 PST
Comment on attachment 333306 [details] Patch Clearing flags on attachment: 333306 Committed r228238: <https://trac.webkit.org/changeset/228238>
WebKit Commit Bot
Comment 25 2018-02-07 11:52:52 PST
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.