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 f9c995b86fdb4df579542874774394085d19de32..5ff5f33cf5c856640abde944956590f086b82c82 100644 |
--- a/cc/trees/layer_tree_host_common.cc |
+++ b/cc/trees/layer_tree_host_common.cc |
@@ -416,8 +416,8 @@ void UpdateAccumulatedSurfaceState( |
DCHECK_IMPLIES(current_target->num_unclipped_descendants(), |
current_draw_transform.IsIdentityOrTranslation()); |
- target_rect = gfx::ToEnclosingRect( |
- MathUtil::MapClippedRect(current_draw_transform, target_rect)); |
+ target_rect = |
+ MathUtil::MapEnclosingClippedRect(current_draw_transform, target_rect); |
} |
// It is an error to not reach |render_target|. If this happens, it means that |