WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
134269
[iOS][WK2] Implement WKPDFView smart magnification
https://bugs.webkit.org/show_bug.cgi?id=134269
Summary
[iOS][WK2] Implement WKPDFView smart magnification
Tim Horton
Reported
2014-06-24 14:53:25 PDT
<
rdar://problem/17272825
>
Attachments
patch
(8.62 KB, patch)
2014-06-24 15:02 PDT
,
Tim Horton
no flags
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Tim Horton
Comment 1
2014-06-24 15:02:29 PDT
Created
attachment 233746
[details]
patch
Tim Horton
Comment 2
2014-06-26 16:37:35 PDT
Comment on
attachment 233746
[details]
patch View in context:
https://bugs.webkit.org/attachment.cgi?id=233746&action=review
r=dan with lots of comments below
> Source/WebKit2/UIProcess/ios/WKPDFView.h:30 > #import <UIKit/UIView.h> > +#import <CorePDF/UIPDFPageView.h>
sorting!
> Source/WebKit2/UIProcess/ios/WKPDFView.mm:49 > +static const float smartMagnificationElementPadding = 0.05;
CGFloat
> Source/WebKit2/UIProcess/ios/WKPDFView.mm:72 > + bool _isStartingZoom;
Big BOOL
> Source/WebKit2/UIProcess/ios/WKPDFView.mm:185 > + [pageInfo.view setDelegate:self];
clear delegates
> Source/WebKit2/UIProcess/ios/WKPDFView.mm:270 > + _isStartingZoom = true;
YES etc
> Source/WebKit2/UIProcess/ios/WKPDFView.mm:272 > + bool isImage = kind == kUIPDFObjectKindGraphic;
Big BOOL
> Source/WebKit2/UIProcess/ios/WKPDFView.mm:275 > + double dx = smartMagnificationElementPadding * targetRect.size.width;
CGFloat
> Source/WebKit2/UIProcess/ios/WKPDFView.mm:277 > + targetRect.origin.x -= dx; > + targetRect.size.width += 2 * dx;
There should be a CGRect thing for this
Tim Horton
Comment 3
2014-06-26 19:11:45 PDT
http://trac.webkit.org/changeset/170515
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug