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

Unified Diff: cc/animation/element_animations.cc

Issue 2322693003: CC Animation: Rename has_any_animation and make implementattion out-of-line (Closed)
Patch Set: Created 4 years, 3 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/animation/element_animations.h ('k') | cc/animation/element_animations_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/animation/element_animations.cc
diff --git a/cc/animation/element_animations.cc b/cc/animation/element_animations.cc
index b9bfa8d287823afb538574b81f08e34ad98c005f..b1bd59e03a808fee891acdf2864d5f87255a83bb 100644
--- a/cc/animation/element_animations.cc
+++ b/cc/animation/element_animations.cc
@@ -135,7 +135,7 @@ void ElementAnimations::PushPropertiesTo(
return;
needs_push_properties_ = false;
- if (!has_any_animation() && !element_animations_impl->has_any_animation())
+ if (!HasAnyAnimation() && !element_animations_impl->HasAnyAnimation())
return;
MarkAbortedAnimationsForDeletion(element_animations_impl.get());
PurgeAnimationsMarkedForDeletion();
@@ -1210,6 +1210,10 @@ bool ElementAnimations::HasActiveAnimation() const {
return false;
}
+bool ElementAnimations::HasAnyAnimation() const {
+ return !animations_.empty();
+}
+
bool ElementAnimations::IsPotentiallyAnimatingProperty(
TargetProperty::Type target_property,
ElementListType list_type) const {
« no previous file with comments | « cc/animation/element_animations.h ('k') | cc/animation/element_animations_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698