[Webkit-unassigned] [Bug 45228] window.scrollBy() scrolls incorrectly when zoomed in/out

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Dec 5 12:20:29 PST 2011


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





--- Comment #4 from Kenneth Rohde Christiansen <kenneth at webkit.org>  2011-12-05 12:20:29 PST ---
(From update of attachment 117906)
View in context: https://bugs.webkit.org/attachment.cgi?id=117906&action=review

> Source/WebCore/page/DOMWindow.cpp:1442
> +    int zoomedX = static_cast<int>(x * m_frame->pageZoomFactor() * m_frame->frameScaleFactor());
> +    int zoomedY = static_cast<int>(y * m_frame->pageZoomFactor() * m_frame->frameScaleFactor());
> +    view->scrollBy(IntSize(zoomedX, zoomedY));

Are you sure that Safari etc doesn't already add the pageZoomFactor in their client? and thus this may break their code?

-- 
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