WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
Bug 235672
avoid setting and clearing :active state when dispatching synthetic click events when possible
https://bugs.webkit.org/show_bug.cgi?id=235672
Summary
avoid setting and clearing :active state when dispatching synthetic click eve...
Cameron McCormack (:heycam)
Reported
2022-01-26 13:57:09 PST
Simulated click events are dispatched with two options: * whether to send associated events mouseover, mouseup, mousedown * whether to repaint the target element with its pressed look We currently always set the element's :active state just after when we'd send the mousedown event, and clear it just after that. When we dispatch a simulated click event with neither of the above options set, there's no way to observe the temporary :active state on the element. We can skip it in that case. Forthcoming is a 0.3-0.4% improvement on Speedometer 2.
Attachments
Patch
(2.39 KB, patch)
2022-01-26 14:01 PST
,
Cameron McCormack (:heycam)
no flags
Details
Formatted Diff
Diff
Patch
(4.72 KB, patch)
2022-01-26 17:33 PST
,
Cameron McCormack (:heycam)
no flags
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Cameron McCormack (:heycam)
Comment 1
2022-01-26 14:01:40 PST
Created
attachment 450067
[details]
Patch
Radar WebKit Bug Importer
Comment 2
2022-01-26 14:20:49 PST
<
rdar://problem/88095418
>
Cameron McCormack (:heycam)
Comment 3
2022-01-26 17:33:40 PST
Created
attachment 450091
[details]
Patch
EWS
Comment 4
2022-01-27 00:49:29 PST
Committed
r288669
(
246475@main
): <
https://commits.webkit.org/246475@main
> All reviewed patches have been landed. Closing bug and clearing flags on
attachment 450091
[details]
.
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