| Index: cc/contents_scaling_layer.cc
|
| diff --git a/cc/contents_scaling_layer.cc b/cc/contents_scaling_layer.cc
|
| index 2e041a1ee0b18c5e12ac8cec4b25134043e8969a..1b5443b0b652cc82e27aa15c2074bf7c163742e7 100644
|
| --- a/cc/contents_scaling_layer.cc
|
| +++ b/cc/contents_scaling_layer.cc
|
| @@ -5,6 +5,7 @@
|
| #include "config.h"
|
|
|
| #include "cc/contents_scaling_layer.h"
|
| +#include "ui/gfx/size_conversions.h"
|
|
|
| namespace cc {
|
|
|
| @@ -15,9 +16,8 @@ ContentsScalingLayer::ContentsScalingLayer()
|
| ContentsScalingLayer::~ContentsScalingLayer() {
|
| }
|
|
|
| -IntSize ContentsScalingLayer::contentBounds() const {
|
| - return IntSize(ceil(bounds().width() * contentsScaleX()),
|
| - ceil(bounds().height() * contentsScaleY()));
|
| +gfx::Size ContentsScalingLayer::contentBounds() const {
|
| + return gfx::ToCeiledSize(bounds().Scale(contentsScaleX(), contentsScaleY()));
|
| }
|
|
|
| float ContentsScalingLayer::contentsScaleX() const {
|
|
|