| Index: ui/compositor/dip_util.cc
|
| diff --git a/ui/compositor/dip_util.cc b/ui/compositor/dip_util.cc
|
| index 7356383c838f83a3a5ce2041d5674ef66e8fceab..62e995f3c6792293978f8bb80dc13920357cbc66 100644
|
| --- a/ui/compositor/dip_util.cc
|
| +++ b/ui/compositor/dip_util.cc
|
| @@ -103,8 +103,7 @@ void SnapLayerToPhysicalPixelBoundary(ui::Layer* snapped_layer,
|
| origin = layer_to_snap->GetTargetBounds().origin() +
|
| layer_to_snap->subpixel_position_offset();
|
| } else {
|
| - cc::Layer* cc_layer = layer_to_snap->cc_layer();
|
| - origin = cc_layer->position();
|
| + origin = layer_to_snap->position();
|
| }
|
| CheckSnapped((layer_offset.x() + origin.x()) * scale_factor);
|
| CheckSnapped((layer_offset.y() + origin.y()) * scale_factor);
|
|
|