summaryrefslogtreecommitdiffstats
path: root/printing/page_setup.h
diff options
context:
space:
mode:
authorvandebo@chromium.org <vandebo@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-10-18 00:15:21 +0000
committervandebo@chromium.org <vandebo@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-10-18 00:15:21 +0000
commitd69d322dcd9d2ace6b0f27d958db6894d1cfb080 (patch)
tree46bf39a09da4838796163b09be4053e229ca7e67 /printing/page_setup.h
parent1eec5ca7adc5b5ac202af117a95d2e3e96831e20 (diff)
downloadchromium_src-d69d322dcd9d2ace6b0f27d958db6894d1cfb080.zip
chromium_src-d69d322dcd9d2ace6b0f27d958db6894d1cfb080.tar.gz
chromium_src-d69d322dcd9d2ace6b0f27d958db6894d1cfb080.tar.bz2
For no margins, or printable area margins, don't factor in the header/footer size.
BUG=NONE TEST=NONE Review URL: http://codereview.chromium.org/8328001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@105973 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'printing/page_setup.h')
-rw-r--r--printing/page_setup.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/printing/page_setup.h b/printing/page_setup.h
index ef1552d..9173475 100644
--- a/printing/page_setup.h
+++ b/printing/page_setup.h
@@ -65,8 +65,8 @@ class PRINTING_EXPORT PageSetup {
private:
// Calculate overlay_area_, effective_margins_, and content_area_, based on
- // a constraint of |bounds|.
- void CalculateSizesWithinRect(const gfx::Rect& bounds);
+ // a constraint of |bounds| and |text_height|.
+ void CalculateSizesWithinRect(const gfx::Rect& bounds, int text_height);
// Physical size of the page, including non-printable margins.
gfx::Size physical_size_;