summaryrefslogtreecommitdiffstats
path: root/printing/units.cc
diff options
context:
space:
mode:
authorvitalybuka@chromium.org <vitalybuka@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-11-13 06:21:54 +0000
committervitalybuka@chromium.org <vitalybuka@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-11-13 06:21:54 +0000
commit0205b685e499c28df47b665464f65fd03af1e335 (patch)
treefd9c8c1ffa82ce355fc48022a8d6726294dcc964 /printing/units.cc
parente86b609fb7cae0b0b4bdf77e47db015ba8cffd58 (diff)
downloadchromium_src-0205b685e499c28df47b665464f65fd03af1e335.zip
chromium_src-0205b685e499c28df47b665464f65fd03af1e335.tar.gz
chromium_src-0205b685e499c28df47b665464f65fd03af1e335.tar.bz2
Print headers and footers with WebKit.
Old implementation with gfx::RenderText had issues with fallback fonts. Sandbox does not allow to read required information from registry. Also WebKit inplementation is smaller and more readable. BUG=152893, 108599, 133548 TEST=manual: make sure that main content with or without headers is in the same place (default margin is exception). Make sure that any custom margins and paper layout produce reasonable result. If margins are to small, header and footer should be hidden. Review URL: https://chromiumcodereview.appspot.com/11359020 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@167311 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'printing/units.cc')
-rw-r--r--printing/units.cc9
1 files changed, 0 insertions, 9 deletions
diff --git a/printing/units.cc b/printing/units.cc
index f1ec616..dcee9ea 100644
--- a/printing/units.cc
+++ b/printing/units.cc
@@ -52,13 +52,4 @@ double ConvertPointsToPixelDouble(double points) {
return ConvertUnitDouble(points, kPointsPerInch, kPixelsPerInch);
}
-double GetHeaderFooterSegmentWidth(double page_width) {
- // Interstice is left at both ends of the page as well as between
- // each region, so 1 is added.
- double total_interstice_width = (kSettingHeaderFooterHorizontalRegions + 1) *
- kSettingHeaderFooterInterstice;
- return (page_width - total_interstice_width) /
- kSettingHeaderFooterHorizontalRegions;
-}
-
} // namespace printing