RESOLVED WONTFIX Bug 222404
Optimize the code to check if an element delegates focus to its shadow root or not
https://bugs.webkit.org/show_bug.cgi?id=222404
Summary Optimize the code to check if an element delegates focus to its shadow root o...
Ryosuke Niwa
Reported 2021-02-24 22:20:12 PST
Split from the bug 222159.
Attachments
Patch (5.24 KB, patch)
2021-02-24 22:36 PST, Ryosuke Niwa
no flags
Ryosuke Niwa
Comment 1 2021-02-24 22:20:49 PST
Ryosuke Niwa
Comment 2 2021-02-24 22:36:09 PST
Simon Fraser (smfr)
Comment 3 2021-02-24 22:38:34 PST
Comment on attachment 421502 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=421502&action=review > Source/WebCore/dom/Node.h:554 > + DelegatesFocusToShadowRoot = 1 << 27, If a node DelegatesFocusToShadowRoot, does it already have rare data? If so, could we put this bit in rare data?
Ryosuke Niwa
Comment 4 2021-02-24 22:39:31 PST
(In reply to Simon Fraser (smfr) from comment #3) > Comment on attachment 421502 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=421502&action=review > > > Source/WebCore/dom/Node.h:554 > > + DelegatesFocusToShadowRoot = 1 << 27, > > If a node DelegatesFocusToShadowRoot, does it already have rare data? If so, > could we put this bit in rare data? The point of this optimization is to avoid retrieving the rare data.
Ryosuke Niwa
Comment 5 2021-02-24 22:50:59 PST
Comment on attachment 421502 [details] Patch Clearing flags on attachment: 421502 Committed r273474 (234554@main): <https://commits.webkit.org/234554@main>
Ryosuke Niwa
Comment 6 2021-02-24 22:51:01 PST
All reviewed patches have been landed. Closing bug.
WebKit Commit Bot
Comment 7 2021-02-27 01:27:26 PST
Re-opened since this is blocked by bug 222510
Ryosuke Niwa
Comment 8 2021-02-27 01:32:10 PST
This was not an overall speed up after all.
Note You need to log in before you can comment on or make changes to this bug.