Bug 143259

Summary: [iOS] Rotating PDF in Safari scrolls to the wrong position
Product: WebKit Reporter: Tim Horton <thorton>
Component: New BugsAssignee: Tim Horton <thorton>
Status: RESOLVED FIXED    
Severity: Normal CC: andersca, mitz, sam, simon.fraser
Priority: P2 Keywords: InRadar
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch mitz: review+

Description Tim Horton 2015-03-31 03:53:03 PDT
[iOS] Rotating PDF in Safari scrolls to the wrong position
Comment 1 Tim Horton 2015-03-31 03:53:31 PDT
Created attachment 249816 [details]
Patch
Comment 2 mitz 2015-03-31 07:32:45 PDT
<rdar://problem/19872693>
Comment 3 mitz 2015-03-31 07:35:14 PDT
Comment on attachment 249816 [details]
Patch

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

> Source/WebKit2/UIProcess/ios/WKPDFView.mm:177
> +    CGFloat oldDocumentLeftPercentage = 0;
> +    CGFloat oldDocumentTopPercentage = 0;

These are clearly not percentages. They are fractions.
Comment 4 Tim Horton 2015-03-31 13:51:11 PDT
http://trac.webkit.org/changeset/182202