Chromium Code Reviews| 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 d86243482f4168c79b2683b6af7c6276596c52d0..a79d5f862198f31c3192772602ad6f5606b4f8b2 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())) + ") " + |
|
rhogan
2016/07/13 18:27:13
This is the other user, exposed via V8 bindings. I
|
| String::number(marginTop) + ' ' + String::number(marginRight) + ' ' + String::number(marginBottom) + ' ' + String::number(marginLeft); |
| } |