Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(522)

Issue 931013002: OOP PDF: Fix incorrect scrolling during fit-to-page (Closed)

Created:
5 years, 10 months ago by raymes
Modified:
5 years, 10 months ago
Reviewers:
Sam McNally
CC:
chromium-reviews, arv+watch_chromium.org, chrome-apps-syd-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

OOP PDF: Fix incorrect scrolling during fit-to-page Currently whenever fitToPage is called on the viewport, it scrolls to the top of the current page. But this isn't always correct. In the case of resizing the viewport, we shouldn't change the scroll pos. Setting the document dimensions also follows this codepath. BUG=458050 Committed: https://crrev.com/161514f59647a9462af1d98652fb85d8c1bd6002 Cr-Commit-Position: refs/heads/master@{#316531}

Patch Set 1 #

Patch Set 2 : #

Total comments: 4

Patch Set 3 : #

Patch Set 4 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+35 lines, -8 lines) Patch
M chrome/browser/resources/pdf/viewport.js View 1 2 3 3 chunks +17 lines, -8 lines 0 comments Download
M chrome/test/data/pdf/test_util.js View 1 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/test/data/pdf/viewport_test.js View 1 1 chunk +13 lines, -0 lines 0 comments Download

Messages

Total messages: 9 (2 generated)
raymes
5 years, 10 months ago (2015-02-17 00:08:53 UTC) #2
Sam McNally
https://codereview.chromium.org/931013002/diff/20001/chrome/browser/resources/pdf/viewport.js File chrome/browser/resources/pdf/viewport.js (right): https://codereview.chromium.org/931013002/diff/20001/chrome/browser/resources/pdf/viewport.js#newcode416 chrome/browser/resources/pdf/viewport.js:416: fitToPageAndScroll_: function(scrollToTopOfPage) { This name suggests that it will ...
5 years, 10 months ago (2015-02-17 03:42:21 UTC) #3
raymes
https://codereview.chromium.org/931013002/diff/20001/chrome/browser/resources/pdf/viewport.js File chrome/browser/resources/pdf/viewport.js (right): https://codereview.chromium.org/931013002/diff/20001/chrome/browser/resources/pdf/viewport.js#newcode416 chrome/browser/resources/pdf/viewport.js:416: fitToPageAndScroll_: function(scrollToTopOfPage) { On 2015/02/17 03:42:21, Sam McNally wrote: ...
5 years, 10 months ago (2015-02-17 03:51:57 UTC) #4
Sam McNally
lgtm
5 years, 10 months ago (2015-02-17 04:11:13 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/931013002/60001
5 years, 10 months ago (2015-02-17 04:13:48 UTC) #7
commit-bot: I haz the power
Committed patchset #4 (id:60001)
5 years, 10 months ago (2015-02-17 05:09:59 UTC) #8
commit-bot: I haz the power
5 years, 10 months ago (2015-02-17 05:11:03 UTC) #9
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/161514f59647a9462af1d98652fb85d8c1bd6002
Cr-Commit-Position: refs/heads/master@{#316531}

Powered by Google App Engine
This is Rietveld 408576698