| 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 6b2c5b6d6c3c94be5aa9da22bc67403407f1633e..803c46fd5db511860509d896a3d7844e33d15b58 100644
|
| --- a/cc/trees/layer_tree_host_common.cc
|
| +++ b/cc/trees/layer_tree_host_common.cc
|
| @@ -1051,8 +1051,7 @@ static inline void CalculateAnimationContentsScale(
|
| // scales and translations. We treat all non-translations as potentially
|
| // affecting scale. Animations that include non-translation/scale components
|
| // will cause the computation of MaximumScale below to fail.
|
| - bool layer_is_animating_scale =
|
| - !layer->layer_animation_controller()->HasOnlyTranslationTransforms();
|
| + bool layer_is_animating_scale = !layer->HasOnlyTranslationTransforms();
|
|
|
| if (!layer_is_animating_scale && !ancestor_is_animating_scale) {
|
| *combined_maximum_animation_contents_scale = 0.f;
|
| @@ -1084,8 +1083,7 @@ static inline void CalculateAnimationContentsScale(
|
| }
|
|
|
| float layer_maximum_animated_scale = 0.f;
|
| - if (!layer->layer_animation_controller()->MaximumTargetScale(
|
| - &layer_maximum_animated_scale)) {
|
| + if (!layer->MaximumTargetScale(&layer_maximum_animated_scale)) {
|
| *combined_maximum_animation_contents_scale = 0.f;
|
| return;
|
| }
|
|
|