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

Unified Diff: Source/core/animation/ElementAnimations.cpp

Issue 1218943002: Compositor animations for Independent CSS Transform Properties (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Add Manual Tests and fix bug with cancel tests Created 5 years, 5 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 | « Source/core/animation/EffectModel.h ('k') | Source/core/animation/KeyframeEffect.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/animation/ElementAnimations.cpp
diff --git a/Source/core/animation/ElementAnimations.cpp b/Source/core/animation/ElementAnimations.cpp
index 86bee848ef2f11d7dbad838d16f62034caf42ed1..7bcfa569e8e80a3314792507526ee266c4a3008d 100644
--- a/Source/core/animation/ElementAnimations.cpp
+++ b/Source/core/animation/ElementAnimations.cpp
@@ -60,7 +60,10 @@ void ElementAnimations::updateAnimationFlags(ComputedStyle& style)
if (effect.isCurrent()) {
if (effect.affects(PropertyHandle(CSSPropertyOpacity)))
style.setHasCurrentOpacityAnimation(true);
- if (effect.affects(PropertyHandle(CSSPropertyTransform)))
+ if (effect.affects(PropertyHandle(CSSPropertyTransform))
+ || effect.affects(PropertyHandle(CSSPropertyRotate))
+ || effect.affects(PropertyHandle(CSSPropertyScale))
+ || effect.affects(PropertyHandle(CSSPropertyTranslate)))
style.setHasCurrentTransformAnimation(true);
if (effect.affects(PropertyHandle(CSSPropertyWebkitFilter)))
style.setHasCurrentFilterAnimation(true);
« no previous file with comments | « Source/core/animation/EffectModel.h ('k') | Source/core/animation/KeyframeEffect.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698