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

Issue 2272053002: Print Preview: Fix fit to page checkbox. (Closed)

Created:
4 years, 4 months ago by rbpotter
Modified:
4 years, 3 months ago
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Print Preview: Fix fit to page checkbox. BUG=568415 Committed: https://crrev.com/e48f535b7adc64eea059a4296577b193dd8c0c86 Cr-Commit-Position: refs/heads/master@{#414794}

Patch Set 1 #

Total comments: 1

Patch Set 2 : Fix comment #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+16 lines, -8 lines) Patch
M components/printing/renderer/print_web_view_helper.cc View 1 5 chunks +16 lines, -8 lines 2 comments Download

Messages

Total messages: 18 (12 generated)
rbpotter
Quick fix for the fit to page bug. Note: added an extra parameter to the ...
4 years, 4 months ago (2016-08-24 16:58:26 UTC) #3
Lei Zhang
lgtm https://codereview.chromium.org/2272053002/diff/1/components/printing/renderer/print_web_view_helper.cc File components/printing/renderer/print_web_view_helper.cc (right): https://codereview.chromium.org/2272053002/diff/1/components/printing/renderer/print_web_view_helper.cc#newcode332 components/printing/renderer/print_web_view_helper.cc:332: // - |ignore_page_size| is true and the uniform ...
4 years, 3 months ago (2016-08-26 02:03:26 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2272053002/20001
4 years, 3 months ago (2016-08-26 20:15:22 UTC) #12
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 3 months ago (2016-08-26 20:20:55 UTC) #14
commit-bot: I haz the power
Patchset 2 (id:??) landed as https://crrev.com/e48f535b7adc64eea059a4296577b193dd8c0c86 Cr-Commit-Position: refs/heads/master@{#414794}
4 years, 3 months ago (2016-08-26 20:24:24 UTC) #16
Larry LA Ca
4 years, 3 months ago (2016-09-04 21:09:38 UTC) #18
Message was sent while issue was closed.
FYI, editorial comments only.  Fix works OK for me (Win10) as is.

https://codereview.chromium.org/2272053002/diff/20001/components/printing/ren...
File components/printing/renderer/print_web_view_helper.cc (right):

https://codereview.chromium.org/2272053002/diff/20001/components/printing/ren...
components/printing/renderer/print_web_view_helper.cc:333: //   size.
Editorial cmt only, no impact: description should read
// Disable scaling when either:
// - The PDF specifies disabling scaling,
// - |ignore_page_size| is false
// - All the pages in the PDF are the same size,
// - The uniform size is the same as the paper size.

Keeps the same size logic together, 
there is no && condition between ignore_page_size and uniform size

https://codereview.chromium.org/2272053002/diff/20001/components/printing/ren...
components/printing/renderer/print_web_view_helper.cc:351: if (ignore_page_size)
Editorial cmt only, no impact
The if (ignore_page_size) check should precede the !dpi check.
The !dpi check protects the page_size() call just below.

Powered by Google App Engine
This is Rietveld 408576698