diff options
author | yuzo@chromium.org <yuzo@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-07-28 03:41:33 +0000 |
---|---|---|
committer | yuzo@chromium.org <yuzo@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-07-28 03:41:33 +0000 |
commit | 72e8a0d3d8e67bf982cda8ba44fad975e2348ea1 (patch) | |
tree | 0b6e39fde8de640ea4ac1ce807aa01e796c6aa43 /chrome/renderer/print_web_view_helper.cc | |
parent | 5ba734feb58a92cff1a1c7cddcfaa8cd57cfda39 (diff) | |
download | chromium_src-72e8a0d3d8e67bf982cda8ba44fad975e2348ea1.zip chromium_src-72e8a0d3d8e67bf982cda8ba44fad975e2348ea1.tar.gz chromium_src-72e8a0d3d8e67bf982cda8ba44fad975e2348ea1.tar.bz2 |
Fix for Issue 50340: @page rules inside @media print rules are not properly
handled
The cause of the bug is that the document is not in printing mode when the page
size is checked.
BUG=50340
TEST=manual
Review URL: http://codereview.chromium.org/2868071
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@53907 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 | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/chrome/renderer/print_web_view_helper.cc b/chrome/renderer/print_web_view_helper.cc index cede085..d5b586c 100644 --- a/chrome/renderer/print_web_view_helper.cc +++ b/chrome/renderer/print_web_view_helper.cc @@ -439,6 +439,7 @@ void PrintWebViewHelper::UpdatePrintableSizeInPrintParameters( WebFrame* frame, ViewMsg_Print_Params* params) { double content_width_in_points; double content_height_in_points; + PrepareFrameAndViewForPrint prepare(*params, frame, frame->view()); PrintWebViewHelper::GetPageSizeAndMarginsInPoints(frame, 0, *params, &content_width_in_points, &content_height_in_points, |