[webkit-changes] [WebKit/WebKit] b9dad0: Clicking on save button dispatches a MouseEvent, b...
Gerald Squelart
noreply at github.com
Thu Mar 2 14:44:53 PST 2023
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: b9dad072710ae23d168919abf01468c1763b8d33
https://github.com/WebKit/WebKit/commit/b9dad072710ae23d168919abf01468c1763b8d33
Author: Gerald Squelart <g_squelart at apple.com>
Date: 2023-03-02 (Thu, 02 Mar 2023)
Changed paths:
M Source/WebCore/html/HTMLAttachmentElement.cpp
M Source/WebCore/html/HTMLAttachmentElement.h
M Source/WebCore/html/HTMLAttachmentElement.idl
Log Message:
-----------
Clicking on save button dispatches a MouseEvent, button location in element's saveButtonClientRect
https://bugs.webkit.org/show_bug.cgi?id=252967
rdar://problem/105952126
Reviewed by Tim Nguyen.
Instead of sending a CustomEvent with some hand-picked details, a click on the save button now dispatches a full copy of the original MouseEvent, and the location of the (shadow) save button can be found the element's saveButtonClientRect property.
* Source/WebCore/html/HTMLAttachmentElement.cpp:
(WebCore::HTMLAttachmentElement::saveButtonClientRect const):
* Source/WebCore/html/HTMLAttachmentElement.h:
* Source/WebCore/html/HTMLAttachmentElement.idl:
Canonical link: https://commits.webkit.org/261101@main
More information about the webkit-changes
mailing list