RESOLVED LATER167216
Remove synchronous layout in HTMLTextFormControlElement::setSelectionRange
https://bugs.webkit.org/show_bug.cgi?id=167216
Summary Remove synchronous layout in HTMLTextFormControlElement::setSelectionRange
Brent Fulgham
Reported 2017-01-19 15:29:55 PST
While working on an unrelated bug, I noticed that an extra layout was being performed. This layout had been added as a workaround Bug 128797, which is now fixed. Rather than perform an unneeded synchronous layout, let's remove it!
Attachments
Patch (1.63 KB, patch)
2017-01-19 15:32 PST, Brent Fulgham
fred.wang: review-
buildbot: commit-queue-
Archive of layout-test-results from ews104 for mac-elcapitan-wk2 (1.19 MB, application/zip)
2017-01-19 16:14 PST, Build Bot
no flags
Archive of layout-test-results from ews113 for mac-elcapitan (1.92 MB, application/zip)
2017-01-19 16:16 PST, Build Bot
no flags
Archive of layout-test-results from ews121 for ios-simulator-wk2 (17.83 MB, application/zip)
2017-01-19 16:28 PST, Build Bot
no flags
Archive of layout-test-results from ews102 for mac-elcapitan (896.86 KB, application/zip)
2017-01-19 16:33 PST, Build Bot
no flags
Brent Fulgham
Comment 1 2017-01-19 15:32:45 PST
Brent Fulgham
Comment 2 2017-01-19 15:33:00 PST
Let's see what EWS thinks of this change!
Build Bot
Comment 3 2017-01-19 16:14:29 PST
Comment on attachment 299276 [details] Patch Attachment 299276 [details] did not pass mac-wk2-ews (mac-wk2): Output: http://webkit-queues.webkit.org/results/2916845 New failing tests: fast/forms/input-select-webkit-user-select-none.html editing/pasteboard/copy-two-pasteboard-types-both-work.html editing/selection/4975120.html fast/forms/input-appearance-selection.html fast/forms/input-delete.html fast/forms/setrangetext.html fast/forms/input-placeholder-visibility-2.html fast/forms/textarea-arrow-navigation.html editing/selection/5497643.html editing/selection/shrink-selection-after-shift-pagedown.html fast/forms/selection-functions.html
Build Bot
Comment 4 2017-01-19 16:14:34 PST
Created attachment 299279 [details] Archive of layout-test-results from ews104 for mac-elcapitan-wk2 The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews. Bot: ews104 Port: mac-elcapitan-wk2 Platform: Mac OS X 10.11.6
Brent Fulgham
Comment 5 2017-01-19 16:15:58 PST
Nope! Looks like this won't work.
Brent Fulgham
Comment 6 2017-01-19 16:16:42 PST
Removing the workaround Ryosuke mentioned is not safe (yet).
Build Bot
Comment 7 2017-01-19 16:16:43 PST
Comment on attachment 299276 [details] Patch Attachment 299276 [details] did not pass mac-debug-ews (mac): Output: http://webkit-queues.webkit.org/results/2916847 Number of test failures exceeded the failure limit.
Build Bot
Comment 8 2017-01-19 16:16:48 PST
Created attachment 299280 [details] Archive of layout-test-results from ews113 for mac-elcapitan The attached test failures were seen while running run-webkit-tests on the mac-debug-ews. Bot: ews113 Port: mac-elcapitan Platform: Mac OS X 10.11.6
Build Bot
Comment 9 2017-01-19 16:28:45 PST
Comment on attachment 299276 [details] Patch Attachment 299276 [details] did not pass ios-sim-ews (ios-simulator-wk2): Output: http://webkit-queues.webkit.org/results/2916862 New failing tests: fast/forms/setrangetext.html editing/selection/4975120.html fast/forms/input-appearance-selection.html fast/forms/selection-functions.html fast/forms/input-delete.html
Build Bot
Comment 10 2017-01-19 16:28:51 PST
Created attachment 299282 [details] Archive of layout-test-results from ews121 for ios-simulator-wk2 The attached test failures were seen while running run-webkit-tests on the ios-sim-ews. Bot: ews121 Port: ios-simulator-wk2 Platform: Mac OS X 10.11.6
Build Bot
Comment 11 2017-01-19 16:33:01 PST
Comment on attachment 299276 [details] Patch Attachment 299276 [details] did not pass mac-ews (mac): Output: http://webkit-queues.webkit.org/results/2916924 New failing tests: fast/forms/input-select-webkit-user-select-none.html editing/pasteboard/copy-two-pasteboard-types-both-work.html editing/selection/4975120.html fast/forms/input-appearance-selection.html fast/forms/input-delete.html fast/forms/input-placeholder-visibility-2.html fast/forms/textarea-arrow-navigation.html editing/selection/shrink-selection-after-shift-pagedown.html fast/forms/selection-functions.html
Build Bot
Comment 12 2017-01-19 16:33:05 PST
Created attachment 299283 [details] Archive of layout-test-results from ews102 for mac-elcapitan The attached test failures were seen while running run-webkit-tests on the mac-ews. Bot: ews102 Port: mac-elcapitan Platform: Mac OS X 10.11.6
Frédéric Wang (:fredw)
Comment 13 2018-02-28 07:47:45 PST
Comment on attachment 299276 [details] Patch FIXME comment was updated in r224296 but I'm not sure there is a new bug for that.
Ryosuke Niwa
Comment 14 2018-02-28 21:22:16 PST
We need to do more work before we can remove the sync layout there.
Note You need to log in before you can comment on or make changes to this bug.