Changeset 49551 in webkit
- Timestamp:
- Oct 13, 2009 8:16:03 PM (15 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r49539 r49551 1 2009-10-13 Sam Weinig <sam@webkit.org> 2 3 Reviewed by David Hyatt. 4 5 Test issue where clientX and clientY on MouseEvents were wrong when 6 the page was zoomed and scrolled. 7 8 * fast/events/clientXY-in-zoom-and-scroll-expected.txt: Added. 9 * fast/events/clientXY-in-zoom-and-scroll.html: Added. 10 1 11 2009-10-13 Dmitry Titov <dimich@chromium.org> 2 12 -
trunk/WebCore/ChangeLog
r49541 r49551 1 2009-10-13 Sam Weinig <sam@webkit.org> 2 3 Reviewed by David Hyatt. 4 5 Fix issue where clientX and clientY on MouseEvents were wrong when 6 the page was zoomed and scrolled. 7 8 Test: fast/events/clientXY-in-zoom-and-scroll.html 9 10 * dom/MouseRelatedEvent.cpp: 11 (WebCore::contentsX): Take page zoom into account. 12 (WebCore::contentsY): Ditto. 13 1 14 2009-10-13 Dave Hyatt <hyatt@apple.com> 2 15 -
trunk/WebCore/dom/MouseRelatedEvent.cpp
r42377 r49551 58 58 if (!frameView) 59 59 return 0; 60 return frameView->scrollX() ;60 return frameView->scrollX() / frame->pageZoomFactor(); 61 61 } 62 62 … … 71 71 if (!frameView) 72 72 return 0; 73 return frameView->scrollY() ;73 return frameView->scrollY() / frame->pageZoomFactor(); 74 74 } 75 75
Note: See TracChangeset
for help on using the changeset viewer.