Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(18)

Unified Diff: ui/compositor/dip_util.cc

Issue 1101823002: CC Animations: Make LayerAnimationController creation optional (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address observers attach/detach. Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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);
« no previous file with comments | « ui/compositor/compositor.cc ('k') | ui/compositor/layer.h » ('j') | ui/compositor/layer.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698