Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(154)

Unified Diff: printing/units.h

Issue 2116283002: Don't let rounding prematurely influence document size when printing (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@620456-2
Patch Set: bug 467579 Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « components/printing/renderer/print_web_view_helper.cc ('k') | printing/units.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: printing/units.h
diff --git a/printing/units.h b/printing/units.h
index 72d2f7cd147294559434f1449668af31ff54279c..0e19d043c83c7bf68f94cc66e78ffe2f8d765d56 100644
--- a/printing/units.h
+++ b/printing/units.h
@@ -40,7 +40,7 @@ const float kA3WidthInch = 11.69f;
const float kA3HeightInch = 16.54f;
// Converts from one unit system to another using integer arithmetics.
-PRINTING_EXPORT int ConvertUnit(int value, int old_unit, int new_unit);
+PRINTING_EXPORT int ConvertUnit(double value, int old_unit, int new_unit);
// Converts from one unit system to another using doubles.
PRINTING_EXPORT double ConvertUnitDouble(double value, double old_unit,
« no previous file with comments | « components/printing/renderer/print_web_view_helper.cc ('k') | printing/units.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698