[Webkit-unassigned] [Bug 30689] New: caretRangeFromPoint() and elementFromPoint() returns wrong result in zoomed and scrolled page.

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Oct 22 13:47:25 PDT 2009


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

           Summary: caretRangeFromPoint() and elementFromPoint() returns
                    wrong result in zoomed and scrolled page.
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: All
        OS/Version: All
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: HTML DOM
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: xji at chromium.org


Created an attachment (id=41682)
 --> (https://bugs.webkit.org/attachment.cgi?id=41682)
test case

Steps:
1. Open the attached HTML
2. click mouse somewhere to show the offset of mouse within the element
3. zoom the page *and* resize the window to make the page scroll
4. scroll the page horizontally and/or vertically, 
5. click mouse in the same place as step 2., observe the printed offset.

Results:
the printd offset is different when page is zoomed and scrolled.

Expected:
the printed offset should be the same.


Cause:
The real cause is the wrong calculation of event.clientX/Y when  page is zoomed
and scrolled.
After Sam fixed the event.clientX/Y in r49551,  patch in r49490 ( for issue
30034) should be reverted.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list