Bug 131611

Summary: Make WK(Web)View magnification setters actually use view-relative positions
Product: WebKit Reporter: Tim Horton <thorton>
Component: WebKit2Assignee: Tim Horton <thorton>
Severity: Normal CC: andersca, simon.fraser
Priority: P2 Keywords: InRadar
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Description Flags
patch darin: review+

Description Tim Horton 2014-04-14 02:58:04 PDT
WKWebView/WKView's setMagnification: and setMagnification:centeredAtPoint: both expose the somewhat bizarre but widespread notion of a scale "origin", which really just translates into the scroll position post-scale. We intended for setMagnification: and setMagnification:centeredAtPoint: to use view-relative points (and points within the view instead of (negative) scroll position) to center the zoom, as those make much more sense as exposed API.

Comment 1 Tim Horton 2014-04-14 03:05:37 PDT
Created attachment 229276 [details]
Comment 2 Tim Horton 2014-04-14 10:28:39 PDT