RESOLVED FIXED208536
[Internals] Introduce Internals::updateLayoutAndStyleRecursively
https://bugs.webkit.org/show_bug.cgi?id=208536
Summary [Internals] Introduce Internals::updateLayoutAndStyleRecursively
alan
Reported 2020-03-03 14:08:41 PST
so that test pages can make sure that the render tree is clean.
Attachments
Patch (4.79 KB, patch)
2020-03-03 14:19 PST, alan
no flags
Patch (4.99 KB, patch)
2020-03-03 14:39 PST, alan
no flags
Radar WebKit Bug Importer
Comment 1 2020-03-03 14:08:59 PST
alan
Comment 2 2020-03-03 14:19:28 PST
Simon Fraser (smfr)
Comment 3 2020-03-03 14:21:17 PST
Comment on attachment 392329 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=392329&action=review > Source/WebCore/ChangeLog:10 > + However in certain cases (see Hyatt's optimization on lazy offsetHeight/Width computation) this call can leave the tree partially dirty. Maybe reference an actual function rather than assuming that we all know what hyatt's optimizations are. > Source/WebCore/testing/Internals.idl:533 > + void updateLayoutAndStyleRecursively(); I think "for all frames" would be clearer that "recursively"; it's not clear what's being recursed on. > LayoutTests/fast/images/animated-gif-no-layout.html:13 > + internals.updateLayoutAndStyleRecursively(); Why not replace or remove the document.body.offsetWidth above?
alan
Comment 4 2020-03-03 14:39:06 PST
alan
Comment 5 2020-03-03 14:40:00 PST
(In reply to Simon Fraser (smfr) from comment #3) > Comment on attachment 392329 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=392329&action=review > > > Source/WebCore/ChangeLog:10 > > + However in certain cases (see Hyatt's optimization on lazy offsetHeight/Width computation) this call can leave the tree partially dirty. > > Maybe reference an actual function rather than assuming that we all know > what hyatt's optimizations are. Fixed. > > > Source/WebCore/testing/Internals.idl:533 > > + void updateLayoutAndStyleRecursively(); > > I think "for all frames" would be clearer that "recursively"; it's not clear > what's being recursed on. Much better name indeed. > > > LayoutTests/fast/images/animated-gif-no-layout.html:13 > > + internals.updateLayoutAndStyleRecursively(); > > Why not replace or remove the document.body.offsetWidth above? Removed.
WebKit Commit Bot
Comment 6 2020-03-03 16:06:22 PST
Comment on attachment 392334 [details] Patch Clearing flags on attachment: 392334 Committed r257811: <https://trac.webkit.org/changeset/257811>
WebKit Commit Bot
Comment 7 2020-03-03 16:06:24 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.