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

Unified Diff: components/printing/renderer/print_web_view_helper.h

Issue 2454293004: Printing: Fix undefined behavior for near 0 scaling (Closed)
Patch Set: Add constant Created 4 years, 2 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 | « no previous file | components/printing/renderer/print_web_view_helper.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/printing/renderer/print_web_view_helper.h
diff --git a/components/printing/renderer/print_web_view_helper.h b/components/printing/renderer/print_web_view_helper.h
index dd8d24d5b42458d47c615562d768d84f8d291e8f..7a4cfcc82f1505c5ba144743481796500dcfd934 100644
--- a/components/printing/renderer/print_web_view_helper.h
+++ b/components/printing/renderer/print_web_view_helper.h
@@ -51,6 +51,7 @@ class WebView;
namespace printing {
+constexpr double kEpsilon = .01f;
Lei Zhang 2016/10/29 00:59:27 Mmm, this adds printing::kEpsilon. Can we declare
rbpotter 2016/10/29 01:09:38 Done.
struct PageSizeMargins;
class PrepareFrameAndViewForPrint;
« no previous file with comments | « no previous file | components/printing/renderer/print_web_view_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698