RESOLVED FIXED 102028
Use correct unscaled document size when calculating scale limits
https://bugs.webkit.org/show_bug.cgi?id=102028
Summary Use correct unscaled document size when calculating scale limits
Tien-Ren Chen
Reported 2012-11-12 18:05:10 PST
Use correct unscaled document size when calculating scale limits
Attachments
Patch (4.42 KB, patch)
2012-11-12 18:10 PST, Tien-Ren Chen
no flags
Patch (5.22 KB, patch)
2012-11-14 19:48 PST, Tien-Ren Chen
no flags
Tien-Ren Chen
Comment 1 2012-11-12 18:10:43 PST
Tien-Ren Chen
Comment 2 2012-11-12 18:12:04 PST
Patch uploaded for early feedback. Will add test in next revision.
Alexandre Elias
Comment 3 2012-11-12 18:47:46 PST
Comment on attachment 173781 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=173781&action=review Good idea, I should've thought of that before. > Source/WebCore/page/FrameView.cpp:3811 > +IntSize FrameView::unscaledContentsSize() const Please move this next to FrameView::setContentsSize().
Adam Barth
Comment 4 2012-11-12 22:50:53 PST
Comment on attachment 173781 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=173781&action=review > Source/WebCore/page/FrameView.h:98 > virtual void setContentsSize(const IntSize&); > + IntSize unscaledContentsSize() const; I'm not sure I understand the relationship between these functions. Is setContentsSize also unscaled?
Tien-Ren Chen
Comment 5 2012-11-14 19:48:32 PST
Tien-Ren Chen
Comment 6 2012-11-14 19:51:39 PST
(In reply to comment #4) > (From update of attachment 173781 [details]) > View in context: https://bugs.webkit.org/attachment.cgi?id=173781&action=review > > > Source/WebCore/page/FrameView.h:98 > > virtual void setContentsSize(const IntSize&); > > + IntSize unscaledContentsSize() const; > > I'm not sure I understand the relationship between these functions. Is setContentsSize also unscaled? Nope, setContentsSize is scaled. I agree it is super confusing. And it doesn't really fit into current code, where contentsSize() uses push model, that RenderView pushes new contents size to the containing frame, and we use pull model to get latest unscaled contents size from RenderView. My decision is to keep it as a static helper function in WebViewImpl.
Alexandre Elias
Comment 7 2012-11-14 20:08:36 PST
LGTM, thanks.
Adam Barth
Comment 8 2012-11-15 10:12:53 PST
Comment on attachment 174324 [details] Patch Ok
WebKit Review Bot
Comment 9 2012-11-15 10:42:26 PST
Comment on attachment 174324 [details] Patch Clearing flags on attachment: 174324 Committed r134796: <http://trac.webkit.org/changeset/134796>
WebKit Review Bot
Comment 10 2012-11-15 10:42:29 PST
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.