| Index: cc/trees/draw_property_utils.cc
|
| diff --git a/cc/trees/draw_property_utils.cc b/cc/trees/draw_property_utils.cc
|
| index 2481e2dc14bfc69580acbdcfabac8f012e1aab22..a91fc4d11b0f1c1c581dac80ba1a6683e2f561d3 100644
|
| --- a/cc/trees/draw_property_utils.cc
|
| +++ b/cc/trees/draw_property_utils.cc
|
| @@ -862,16 +862,15 @@ bool CanUseLcdTextFromPropertyTrees(const LayerImpl* layer,
|
| gfx::Rect DrawableContentRectOfSurfaceFromPropertyTrees(
|
| const RenderSurfaceImpl* render_surface,
|
| const TransformTree& transform_tree) {
|
| - gfx::Rect drawable_content_rect =
|
| - gfx::ToEnclosingRect(MathUtil::MapClippedRect(
|
| - DrawTransformOfRenderSurfaceFromPropertyTrees(render_surface,
|
| - transform_tree),
|
| - render_surface->content_rect_from_property_trees()));
|
| + gfx::Rect drawable_content_rect = MathUtil::MapEnclosingClippedRect(
|
| + DrawTransformOfRenderSurfaceFromPropertyTrees(render_surface,
|
| + transform_tree),
|
| + render_surface->content_rect_from_property_trees());
|
| if (render_surface->HasReplica()) {
|
| - drawable_content_rect.Union(gfx::ToEnclosingRect(MathUtil::MapClippedRect(
|
| + drawable_content_rect.Union(MathUtil::MapEnclosingClippedRect(
|
| DrawTransformOfRenderSurfaceReplicaFromPropertyTrees(render_surface,
|
| transform_tree),
|
| - render_surface->content_rect_from_property_trees())));
|
| + render_surface->content_rect_from_property_trees()));
|
| }
|
| return drawable_content_rect;
|
| }
|
|
|