WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
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
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Ryosuke Niwa
Comment 1
2021-02-24 22:20:49 PST
<
rdar://problem/74680265
>
Ryosuke Niwa
Comment 2
2021-02-24 22:36:09 PST
Created
attachment 421502
[details]
Patch
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.
Top of Page
Format For Printing
XML
Clone This Bug