| Index: cc/trees/layer_tree_host_common.cc
|
| diff --git a/cc/trees/layer_tree_host_common.cc b/cc/trees/layer_tree_host_common.cc
|
| index 3e8054e4a905b8c022b89e11f84e00741a8b6e88..071a77210c9a4072cb33c3133c93acb8396fa78e 100644
|
| --- a/cc/trees/layer_tree_host_common.cc
|
| +++ b/cc/trees/layer_tree_host_common.cc
|
| @@ -271,8 +271,9 @@ static gfx::Rect TranslateRectToTargetSpace(const LayerImpl& ancestor_layer,
|
| ComputeChangeOfBasisTranslation(ancestor_layer, descendant_layer);
|
| if (direction == TRANSLATE_RECT_DIRECTION_TO_DESCENDANT)
|
| translation.Scale(-1.f);
|
| + gfx::RectF rect_f = gfx::RectF(rect);
|
| return gfx::ToEnclosingRect(
|
| - gfx::RectF(rect.origin() + translation, rect.size()));
|
| + gfx::RectF(rect_f.origin() + translation, rect_f.size()));
|
| }
|
|
|
| // Attempts to update the clip rects for the given layer. If the layer has a
|
|
|