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

Unified Diff: third_party/WebKit/Source/web/tests/WebViewTest.cpp

Issue 2854143003: Fix incorrectly rounded page size (Closed)
Patch Set: fix tests Created 3 years, 8 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 | « third_party/WebKit/Source/core/page/PrintContext.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/web/tests/WebViewTest.cpp
diff --git a/third_party/WebKit/Source/web/tests/WebViewTest.cpp b/third_party/WebKit/Source/web/tests/WebViewTest.cpp
index b7a61a9a18681f2651d2ddfb97688bddf33a6370..a86d174d5eb686a4960046fc049e250d989572a5 100644
--- a/third_party/WebKit/Source/web/tests/WebViewTest.cpp
+++ b/third_party/WebKit/Source/web/tests/WebViewTest.cpp
@@ -2011,7 +2011,7 @@ bool WebViewTest::TapElementById(WebInputEvent::Type type,
IntSize WebViewTest::PrintICBSizeFromPageSize(const FloatSize& page_size) {
// This needs to match |kPrintingMinimumShrinkFactor| in PrintContext.cpp. The
// layout is scaled by this factor for printing.
- constexpr float kMinimumShrinkFactor = 1.333f;
+ constexpr float kMinimumShrinkFactor = 1.33333333f;
// The expected layout size comes from the calculation done in
// ResizePageRectsKeepingRatio() which is used from PrintContext::begin() to
« no previous file with comments | « third_party/WebKit/Source/core/page/PrintContext.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698