| Index: ui/compositor/layer.cc
|
| diff --git a/ui/compositor/layer.cc b/ui/compositor/layer.cc
|
| index c96ac53612f229a1994e0cadef309be998b24e21..d03a1b4062b57efc9d51372182023a2dfb152825 100644
|
| --- a/ui/compositor/layer.cc
|
| +++ b/ui/compositor/layer.cc
|
| @@ -924,7 +924,7 @@ void Layer::RecomputeDrawsContentAndUVRect() {
|
| float texture_scale_factor = 1.0f / texture_->device_scale_factor();
|
| gfx::Size texture_size = gfx::ToFlooredSize(
|
| gfx::ScaleSize(texture_->size(), texture_scale_factor));
|
| - size.ClampToMax(texture_size);
|
| + size.ClampToUpperBound(texture_size);
|
|
|
| gfx::PointF uv_top_left(0.f, 0.f);
|
| gfx::PointF uv_bottom_right(
|
| @@ -934,7 +934,7 @@ void Layer::RecomputeDrawsContentAndUVRect() {
|
| } else if (delegated_renderer_layer_.get()) {
|
| delegated_renderer_layer_->SetDisplaySize(
|
| ConvertSizeToPixel(this, delegated_frame_size_in_dip_));
|
| - size.ClampToMax(delegated_frame_size_in_dip_);
|
| + size.ClampToUpperBound(delegated_frame_size_in_dip_);
|
| }
|
| cc_layer_->SetBounds(ConvertSizeToPixel(this, size));
|
| }
|
|
|