Bug 129477

Summary: MouseEvent.offsetX/Y should just return 0,0 for simulated clicks.
Product: WebKit Reporter: Andreas Kling <kling>
Component: UI EventsAssignee: Andreas Kling <kling>
Status: RESOLVED FIXED    
Severity: Normal CC: commit-queue, esprehn+autocc, kangil.han, kling
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch ap: review+

Description Andreas Kling 2014-02-28 02:15:30 PST
Computing offsetX/Y is non-trivial, and the values are meaningless for simulated clicks anyway.
Comment 1 Andreas Kling 2014-02-28 02:15:58 PST
Created attachment 225448 [details]
Patch
Comment 2 Alexey Proskuryakov 2014-02-28 09:21:36 PST
Comment on attachment 225448 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=225448&action=review

> Source/WebCore/ChangeLog:7
> +        There's no need to compute the exact target-relative coordinates for
> +        simulated mouse events, e.g those fired by HTMLElement.click().

r=me with the condition that this matches at least Firefox.
Comment 3 Andreas Kling 2014-02-28 10:38:40 PST
Committed r164871: <http://trac.webkit.org/changeset/164871>