summaryrefslogtreecommitdiffstats
path: root/printing
diff options
context:
space:
mode:
authorctguil@chromium.org <ctguil@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-04-20 06:59:23 +0000
committerctguil@chromium.org <ctguil@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-04-20 06:59:23 +0000
commit1c7d72d30e93a9a8ec02397b085abeb99c41d8c9 (patch)
treebe1531a3c38388c63983aa4b61445e6016f90f03 /printing
parent1f1a82a680bbb568503bf91dbec6d95cd1a3e86d (diff)
downloadchromium_src-1c7d72d30e93a9a8ec02397b085abeb99c41d8c9.zip
chromium_src-1c7d72d30e93a9a8ec02397b085abeb99c41d8c9.tar.gz
chromium_src-1c7d72d30e93a9a8ec02397b085abeb99c41d8c9.tar.bz2
Fix scaling issue in windows print preview.
* Use the full page size for pdf print preview. * Scale device by the webkit page shrink for pdf preview. BUG=79518 TEST=none Review URL: http://codereview.chromium.org/6871038 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@82259 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'printing')
-rw-r--r--printing/emf_win.cc3
-rw-r--r--printing/emf_win.h4
2 files changed, 3 insertions, 4 deletions
diff --git a/printing/emf_win.cc b/printing/emf_win.cc
index 1b5601a..758abc9 100644
--- a/printing/emf_win.cc
+++ b/printing/emf_win.cc
@@ -416,8 +416,7 @@ skia::PlatformDevice* Emf::StartPageForVectorCanvas(
bool Emf::StartPage(const gfx::Size& /*page_size*/,
const gfx::Point& /*content_origin*/,
- const float& scale_factor) {
- DCHECK_EQ(1.0f, scale_factor); // We don't support scaling here.
+ const float& /*scale_factor*/) {
DCHECK(hdc_);
if (!hdc_)
return false;
diff --git a/printing/emf_win.h b/printing/emf_win.h
index 4d8302c..1df72f4b 100644
--- a/printing/emf_win.h
+++ b/printing/emf_win.h
@@ -50,8 +50,8 @@ class Emf : public Metafile {
const float& scale_factor);
// Inserts a custom GDICOMMENT records indicating StartPage/EndPage calls
// (since StartPage and EndPage do not work in a metafile DC). Only valid
- // when hdc_ is non-NULL. |page_size| and |content_origin| are ignored.
- // |scale_factor| must be 1.0.
+ // when hdc_ is non-NULL. |page_size|, |content_origin|, and |scale_factor|
+ // are ignored.
virtual bool StartPage(const gfx::Size& page_size,
const gfx::Point& content_origin,
const float& scale_factor);