RESOLVED FIXED 208504
Avoid full style resolution on Element::focus()
https://bugs.webkit.org/show_bug.cgi?id=208504
Summary Avoid full style resolution on Element::focus()
Antti Koivisto
Reported 2020-03-03 01:24:17 PST
It can be costly.
Attachments
wip (6.27 KB, patch)
2020-03-03 01:25 PST, Antti Koivisto
no flags
wip (7.94 KB, patch)
2020-03-03 03:20 PST, Antti Koivisto
no flags
wip (10.95 KB, patch)
2020-03-03 06:33 PST, Antti Koivisto
no flags
wip (12.16 KB, patch)
2020-03-03 10:37 PST, Antti Koivisto
no flags
patch (15.62 KB, patch)
2020-03-03 12:47 PST, Antti Koivisto
no flags
patch (15.68 KB, patch)
2020-03-03 12:49 PST, Antti Koivisto
zalan: review+
patch (16.61 KB, patch)
2020-03-04 00:29 PST, Antti Koivisto
no flags
patch (21.52 KB, patch)
2020-03-04 01:22 PST, Antti Koivisto
no flags
patch (22.77 KB, patch)
2020-03-04 02:25 PST, Antti Koivisto
no flags
followup (1.82 KB, patch)
2020-03-04 06:26 PST, Antti Koivisto
no flags
patch (1.82 KB, patch)
2020-03-04 06:55 PST, Antti Koivisto
no flags
followup (1.85 KB, patch)
2020-03-04 07:05 PST, Antti Koivisto
no flags
Antti Koivisto
Comment 1 2020-03-03 01:25:48 PST
Antti Koivisto
Comment 2 2020-03-03 03:20:12 PST
Antti Koivisto
Comment 3 2020-03-03 06:33:20 PST
Antti Koivisto
Comment 4 2020-03-03 10:37:00 PST
Antti Koivisto
Comment 5 2020-03-03 12:47:50 PST
Antti Koivisto
Comment 6 2020-03-03 12:49:27 PST
zalan
Comment 7 2020-03-03 12:55:36 PST
Comment on attachment 392313 [details] patch I've got a bit of a compat/regression concern here, but let's see what happens...also YAY.
Ryosuke Niwa
Comment 8 2020-03-03 13:56:05 PST
Comment on attachment 392313 [details] patch View in context: https://bugs.webkit.org/attachment.cgi?id=392313&action=review > Source/WebCore/ChangeLog:14 > + This appears to be 3-4% Speedometer progression. Nice!
Antti Koivisto
Comment 9 2020-03-04 00:29:15 PST
Antti Koivisto
Comment 10 2020-03-04 01:22:10 PST
Antti Koivisto
Comment 11 2020-03-04 02:25:36 PST
WebKit Commit Bot
Comment 12 2020-03-04 04:11:19 PST
Comment on attachment 392399 [details] patch Clearing flags on attachment: 392399 Committed r257839: <https://trac.webkit.org/changeset/257839>
WebKit Commit Bot
Comment 13 2020-03-04 04:11:21 PST
All reviewed patches have been landed. Closing bug.
Radar WebKit Bug Importer
Comment 14 2020-03-04 04:12:18 PST
Emilio Cobos Álvarez (:emilio)
Comment 15 2020-03-04 05:36:54 PST
Comment on attachment 392399 [details] patch View in context: https://bugs.webkit.org/attachment.cgi?id=392399&action=review > Source/WebCore/dom/Element.cpp:3352 > + for (auto& element : ancestorsOfType<Element>(*this)) { This should probably be the flat / composed tree ancestors, right? I suspect this would crash otherwise in some shadow DOM situations involving slotting.
Antti Koivisto
Comment 16 2020-03-04 06:15:02 PST
Good point!
Antti Koivisto
Comment 17 2020-03-04 06:26:38 PST
Created attachment 392406 [details] followup
Antti Koivisto
Comment 18 2020-03-04 06:54:48 PST
Reopening for a followup
Antti Koivisto
Comment 19 2020-03-04 06:55:12 PST
Antti Koivisto
Comment 20 2020-03-04 07:05:30 PST
Created attachment 392411 [details] followup
WebKit Commit Bot
Comment 21 2020-03-04 08:34:47 PST
Comment on attachment 392411 [details] followup Clearing flags on attachment: 392411 Committed r257846: <https://trac.webkit.org/changeset/257846>
WebKit Commit Bot
Comment 22 2020-03-04 08:34:49 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.