Index: third_party/WebKit/Source/core/page/PrintContext.cpp |
diff --git a/third_party/WebKit/Source/core/page/PrintContext.cpp b/third_party/WebKit/Source/core/page/PrintContext.cpp |
index ccddc2e8c7c8162c884d2c7664d02d29841fab11..a81f29fd850ad99080eb664a9fc67df02f1bd536 100644 |
--- a/third_party/WebKit/Source/core/page/PrintContext.cpp |
+++ b/third_party/WebKit/Source/core/page/PrintContext.cpp |
@@ -294,10 +294,10 @@ bool PrintContext::isPageBoxVisible(LocalFrame* frame, int pageNumber) |
String PrintContext::pageSizeAndMarginsInPixels(LocalFrame* frame, int pageNumber, int width, int height, int marginTop, int marginRight, int marginBottom, int marginLeft) |
{ |
- IntSize pageSize(width, height); |
+ FloatSize pageSize(width, height); |
frame->document()->pageSizeAndMarginsInPixels(pageNumber, pageSize, marginTop, marginRight, marginBottom, marginLeft); |
- return "(" + String::number(pageSize.width()) + ", " + String::number(pageSize.height()) + ") " + |
+ return "(" + String::number(floor(pageSize.width())) + ", " + String::number(floor(pageSize.height())) + ") " + |
String::number(marginTop) + ' ' + String::number(marginRight) + ' ' + String::number(marginBottom) + ' ' + String::number(marginLeft); |
} |