Index: ui/wm/core/image_grid.cc |
diff --git a/ui/wm/core/image_grid.cc b/ui/wm/core/image_grid.cc |
index 61548422bd829254d8dcfbf9146ace75bec7e0f3..700deb90362026d70d6127a94243c4abeac29458 100644 |
--- a/ui/wm/core/image_grid.cc |
+++ b/ui/wm/core/image_grid.cc |
@@ -60,7 +60,7 @@ bool LayerExceedsSize(const ui::Layer* layer, const gfx::Size& size) { |
gfx::RectF ImageGrid::TestAPI::GetTransformedLayerBounds( |
const ui::Layer& layer) { |
- gfx::RectF bounds = layer.bounds(); |
+ gfx::RectF bounds = gfx::RectF(layer.bounds()); |
layer.transform().TransformRect(&bounds); |
return bounds; |
} |