Bug 224996

Summary: [RenderTreeBuilder] Subtree moving should clear the floats on all the descendants
Product: WebKit Reporter: zalan <zalan>
Component: Layout and RenderingAssignee: zalan <zalan>
Status: RESOLVED FIXED    
Severity: Normal CC: bfulgham, changseok, esprehn+autocc, ews-watchlist, glenn, koivisto, kondapallykalyan, pdr, simon.fraser, zalan
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch
none
[fast-cq] Patch none

Description zalan 2021-04-23 14:21:02 PDT
<rdar://76837320>

and not only on the root of the move.
Comment 1 zalan 2021-04-23 15:27:49 PDT
Created attachment 426955 [details]
Patch
Comment 2 Antti Koivisto 2021-04-23 21:47:08 PDT
Comment on attachment 426955 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=426955&action=review

> Source/WebCore/ChangeLog:9
> +        While moving a subtre, we invalidate the floating object list so that we don't end up with incorrectly placed floats (they'll get regenerated during the subsequent layout).

We should really stop moving subtrees. Also spelling.
Comment 3 zalan 2021-04-24 06:37:31 PDT
(In reply to Antti Koivisto from comment #2)
> Comment on attachment 426955 [details]
> Patch
> 
> View in context:
> https://bugs.webkit.org/attachment.cgi?id=426955&action=review
> 
> > Source/WebCore/ChangeLog:9
> > +        While moving a subtre, we invalidate the floating object list so that we don't end up with incorrectly placed floats (they'll get regenerated during the subsequent layout).
> 
> We should really stop moving subtrees. Also spelling.
Yes and yes. I wonder what we'll come up with for LFC where the layout nodes (renderers) don't store layout states so moving subtrees is nothing but a simple re-parenting activity, while we have to run invalidation on the formatting state objects.
Comment 4 zalan 2021-04-24 06:40:07 PDT
Created attachment 426979 [details]
[fast-cq] Patch
Comment 5 EWS 2021-04-24 06:42:13 PDT
Committed r276549 (236989@main): <https://commits.webkit.org/236989@main>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 426979 [details].