summaryrefslogtreecommitdiffstats
path: root/printing/emf_win.cc
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/emf_win.cc
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/emf_win.cc')
-rw-r--r--printing/emf_win.cc3
1 files changed, 1 insertions, 2 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;