| Index: cc/layers/layer_impl.cc
|
| diff --git a/cc/layers/layer_impl.cc b/cc/layers/layer_impl.cc
|
| index 302bda43088490d68f4f303404197e44d5cc0995..35fb0fa86282fc838a8bf2f948d6d5734ca0b713 100644
|
| --- a/cc/layers/layer_impl.cc
|
| +++ b/cc/layers/layer_impl.cc
|
| @@ -1169,7 +1169,10 @@ gfx::ScrollOffset LayerImpl::MaxScrollOffset() const {
|
| DCHECK(this != layer_tree_impl()->InnerViewportScrollLayer() ||
|
| IsContainerForFixedPositionLayers());
|
|
|
| - gfx::SizeF scaled_scroll_bounds(bounds());
|
| + // Don't use LayerImpl::bounds() since it snaps to integral values. We'll
|
| + // snap post-scaling.
|
| + gfx::SizeF scaled_scroll_bounds(bounds_.width() + bounds_delta_.x(),
|
| + bounds_.height() + bounds_delta_.y());
|
|
|
| float scale_factor = 1.f;
|
| for (LayerImpl const* current_layer = this;
|
|
|