summaryrefslogtreecommitdiffstats
path: root/chrome/renderer/print_web_view_helper_linux.cc
diff options
context:
space:
mode:
authorthestig@chromium.org <thestig@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-03-07 21:25:31 +0000
committerthestig@chromium.org <thestig@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-03-07 21:25:31 +0000
commit1a23a6aefb1108f8c1192ebdc4f141a3a2e53eae (patch)
tree8aaafe4cdcd5c6cb9af03fd4cddea7cec5572714 /chrome/renderer/print_web_view_helper_linux.cc
parent60cf2db2288f8808e7afdc4a19164df35db7e455 (diff)
downloadchromium_src-1a23a6aefb1108f8c1192ebdc4f141a3a2e53eae.zip
chromium_src-1a23a6aefb1108f8c1192ebdc4f141a3a2e53eae.tar.gz
chromium_src-1a23a6aefb1108f8c1192ebdc4f141a3a2e53eae.tar.bz2
Cleanup: Remove some unneeded fluff in printing code.
BUG=none TEST=none Review URL: https://chromiumcodereview.appspot.com/9616049 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@125458 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/renderer/print_web_view_helper_linux.cc')
-rw-r--r--chrome/renderer/print_web_view_helper_linux.cc9
1 files changed, 4 insertions, 5 deletions
diff --git a/chrome/renderer/print_web_view_helper_linux.cc b/chrome/renderer/print_web_view_helper_linux.cc
index 57b77c9..1101dbc1 100644
--- a/chrome/renderer/print_web_view_helper_linux.cc
+++ b/chrome/renderer/print_web_view_helper_linux.cc
@@ -1,4 +1,4 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -47,7 +47,7 @@ bool PrintWebViewHelper::RenderPreviewPage(int page_number) {
if (draft_metafile.get()) {
draft_metafile->FinishDocument();
} else if (print_preview_context_.IsModifiable() &&
- print_preview_context_.generate_draft_pages()){
+ print_preview_context_.generate_draft_pages()) {
DCHECK(!draft_metafile.get());
draft_metafile.reset(
print_preview_context_.metafile()->GetMetafileForCurrentPage());
@@ -55,13 +55,12 @@ bool PrintWebViewHelper::RenderPreviewPage(int page_number) {
return PreviewPageRendered(page_number, draft_metafile.get());
}
-bool PrintWebViewHelper::PrintPages(const PrintMsg_PrintPages_Params& params,
- WebFrame* frame,
- const WebNode& node) {
+bool PrintWebViewHelper::PrintPages(WebFrame* frame, const WebNode& node) {
printing::NativeMetafile metafile;
if (!metafile.Init())
return false;
+ const PrintMsg_PrintPages_Params& params = *print_pages_params_;
PrepareFrameAndViewForPrint prep_frame_view(params.params, frame, node);
int page_count = 0;
if (!RenderPages(params, frame, node, &page_count, &prep_frame_view,