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

Unified Diff: cc/animation/element_animations.cc

Issue 2655993002: cc: Fix animation bounds computation for multiple players (Closed)
Patch Set: Created 3 years, 11 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 | « no previous file | 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 9365c4f1eb3a7eb85e37136400cf4e7cae7740c4..5e30ac1db8e79b181720c6c4b8d1231d48b17eff 100644
--- a/cc/animation/element_animations.cc
+++ b/cc/animation/element_animations.cc
@@ -241,6 +241,8 @@ bool ElementAnimations::TransformAnimationBoundsForBox(
*bounds = gfx::BoxF();
for (auto& player : players_list_) {
+ if (!player.HasTransformAnimationThatInflatesBounds())
+ continue;
gfx::BoxF player_bounds;
bool success = player.TransformAnimationBoundsForBox(box, &player_bounds);
if (!success)
« no previous file with comments | « no previous file | cc/animation/element_animations_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698