[Webkit-unassigned] [Bug 235672] New: avoid setting and clearing :active state when dispatching synthetic click events when possible

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Jan 26 13:57:09 PST 2022


https://bugs.webkit.org/show_bug.cgi?id=235672

            Bug ID: 235672
           Summary: avoid setting and clearing :active state when
                    dispatching synthetic click events when possible
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: DOM
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: heycam at apple.com

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.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20220126/a2c27822/attachment.htm>


More information about the webkit-unassigned mailing list