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

Unified Diff: cc/trees/layer_tree_host_impl.cc

Issue 1700653002: CC Animation: Expose TargetProperty enum to be aliased in Blink Platform. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 4 years, 10 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
« no previous file with comments | « cc/trees/layer_tree_host_common_unittest.cc ('k') | cc/trees/layer_tree_host_impl_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/trees/layer_tree_host_impl.cc
diff --git a/cc/trees/layer_tree_host_impl.cc b/cc/trees/layer_tree_host_impl.cc
index 0ffe5782b3c0da43658a752b3ec353638deba91d..8b1227270b5f39e3cfefa936052e0f585d6c55e0 100644
--- a/cc/trees/layer_tree_host_impl.cc
+++ b/cc/trees/layer_tree_host_impl.cc
@@ -3750,7 +3750,7 @@ void LayerTreeHostImpl::ScrollAnimationAbort(LayerImpl* layer_impl) {
return animation_host_->ScrollAnimationAbort();
layer_impl->layer_animation_controller()->AbortAnimations(
- Animation::SCROLL_OFFSET);
+ TargetProperty::SCROLL_OFFSET);
}
void LayerTreeHostImpl::ScrollAnimationCreate(
@@ -3771,7 +3771,7 @@ void LayerTreeHostImpl::ScrollAnimationCreate(
scoped_ptr<Animation> animation = Animation::Create(
std::move(curve), AnimationIdProvider::NextAnimationId(),
- AnimationIdProvider::NextGroupId(), Animation::SCROLL_OFFSET);
+ AnimationIdProvider::NextGroupId(), TargetProperty::SCROLL_OFFSET);
animation->set_is_impl_only(true);
layer_impl->layer_animation_controller()->AddAnimation(std::move(animation));
@@ -3792,7 +3792,7 @@ bool LayerTreeHostImpl::ScrollAnimationUpdateTarget(
Animation* animation =
layer_impl->layer_animation_controller()
? layer_impl->layer_animation_controller()->GetAnimation(
- Animation::SCROLL_OFFSET)
+ TargetProperty::SCROLL_OFFSET)
: nullptr;
if (!animation)
return false;
« no previous file with comments | « cc/trees/layer_tree_host_common_unittest.cc ('k') | cc/trees/layer_tree_host_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698