diff options
author | kmadhusu@chromium.org <kmadhusu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-08-02 16:44:20 +0000 |
---|---|---|
committer | kmadhusu@chromium.org <kmadhusu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-08-02 16:44:20 +0000 |
commit | 534c4fb35c8c195c6d82e7e12ac303397e796825 (patch) | |
tree | 1bfdb823901de172173b19f58b0aab493e1bb932 /chrome/renderer/print_web_view_helper.cc | |
parent | 1c78d786e3889ca1b783ab31ac3a16449e718f6f (diff) | |
download | chromium_src-534c4fb35c8c195c6d82e7e12ac303397e796825.zip chromium_src-534c4fb35c8c195c6d82e7e12ac303397e796825.tar.gz chromium_src-534c4fb35c8c195c6d82e7e12ac303397e796825.tar.bz2 |
PrintPreview: Remove |page_number| from StartPageForVectorCanvas function and |page_slot| from PrintMsg_PrintPage_Params.
We will not add preview pages to the complete metafile in out of order fashion.
BUG=none
TEST=print preview works after code changes.
Review URL: http://codereview.chromium.org/7549001
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@95092 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/renderer/print_web_view_helper.cc')
-rw-r--r-- | chrome/renderer/print_web_view_helper.cc | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/chrome/renderer/print_web_view_helper.cc b/chrome/renderer/print_web_view_helper.cc index 7ad456f..1735d90 100644 --- a/chrome/renderer/print_web_view_helper.cc +++ b/chrome/renderer/print_web_view_helper.cc @@ -582,7 +582,6 @@ bool PrintWebViewHelper::PrintPages(const PrintMsg_PrintPages_Params& params, if (params.pages.empty()) { for (int i = 0; i < page_count; ++i) { page_params.page_number = i; - page_params.page_slot = i; PrintPageInternal(page_params, canvas_size, frame); } } else { @@ -590,7 +589,6 @@ bool PrintWebViewHelper::PrintPages(const PrintMsg_PrintPages_Params& params, if (params.pages[i] >= page_count) break; page_params.page_number = params.pages[i]; - page_params.page_slot = i; PrintPageInternal(page_params, canvas_size, frame); } } @@ -1094,12 +1092,6 @@ bool PrintWebViewHelper::PrintPreviewContext::IsModifiable() const { return mime != "application/pdf"; } -int PrintWebViewHelper::PrintPreviewContext::GetPageSlotForPage( - int page_number) const { - int page_slot = rendered_pages_[page_number].second; - return page_slot == -1 ? page_number : page_slot; -} - WebKit::WebFrame* PrintWebViewHelper::PrintPreviewContext::frame() const { return frame_; } |