RESOLVED FIXED199718
[Text autosizing] Do not nuke the style on dynamicViewportSizeUpdate
https://bugs.webkit.org/show_bug.cgi?id=199718
Summary [Text autosizing] Do not nuke the style on dynamicViewportSizeUpdate
alan
Reported 2019-07-11 12:41:03 PDT
Attachments
Patch (14.21 KB, patch)
2019-07-11 12:43 PDT, alan
no flags
Patch (19.72 KB, patch)
2019-07-19 14:24 PDT, alan
no flags
Patch (18.12 KB, patch)
2019-07-19 15:07 PDT, alan
no flags
Patch (18.15 KB, patch)
2019-07-20 05:52 PDT, alan
no flags
alan
Comment 1 2019-07-11 12:43:37 PDT
alan
Comment 2 2019-07-19 14:24:27 PDT
alan
Comment 3 2019-07-19 15:07:44 PDT
Simon Fraser (smfr)
Comment 4 2019-07-19 15:43:16 PDT
Comment on attachment 374501 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=374501&action=review > Source/WebCore/page/Page.cpp:3014 > +void Page::invalidateTextAutoSizeInAllFrames() recomputeTextAutoSizingInAllFrames > Source/WebKit/WebProcess/WebPage/ios/WebPageIOS.mm:3362 > + const Seconds defaultTextAutoSizingDelayOnViewportChange = 80_ms; > + auto textAutoSizingDelayOnViewportChange = defaultTextAutoSizingDelayOnViewportChange; > + if (willBeVisuallyNonEmptySoon) { > + // Be a bit more agressive on the first display. > + const Seconds shortTextAutoSizingDelayOnViewportChange = 20_ms; > + textAutoSizingDelayOnViewportChange = shortTextAutoSizingDelayOnViewportChange; > + } else if (!isVisaullyNonEmpty) { > + // We don't anticipate any paining after the next upcoming layout. > + const Seconds longTextAutoSizingDelayOnViewportChange = 100_ms; > + textAutoSizingDelayOnViewportChange = longTextAutoSizingDelayOnViewportChange; > + > + } Maybe wrap in a lambda
alan
Comment 5 2019-07-20 05:48:23 PDT
alan
Comment 6 2019-07-20 05:52:19 PDT
WebKit Commit Bot
Comment 7 2019-07-20 06:47:19 PDT
Comment on attachment 374547 [details] Patch Clearing flags on attachment: 374547 Committed r247667: <https://trac.webkit.org/changeset/247667>
WebKit Commit Bot
Comment 8 2019-07-20 06:47:20 PDT
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.