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

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

Issue 1196913005: Implement animations for Independent CSS Transform Properties (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 6 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
Index: Source/core/animation/ElementAnimations.cpp
diff --git a/Source/core/animation/ElementAnimations.cpp b/Source/core/animation/ElementAnimations.cpp
index 86bee848ef2f11d7dbad838d16f62034caf42ed1..aa38ce52ba72d852e2b6fc0c2d44198dfbe58ce2 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(CSSPropertyTranslate))
+ || effect.affects(PropertyHandle(CSSPropertyRotate))
+ || effect.affects(PropertyHandle(CSSPropertyScale)))
style.setHasCurrentTransformAnimation(true);
if (effect.affects(PropertyHandle(CSSPropertyWebkitFilter)))
style.setHasCurrentFilterAnimation(true);

Powered by Google App Engine
This is Rietveld 408576698