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

Unified Diff: Source/core/animation/DocumentAnimations.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/CompositorAnimations.cpp ('k') | Source/core/animation/EffectModel.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/animation/DocumentAnimations.cpp
diff --git a/Source/core/animation/DocumentAnimations.cpp b/Source/core/animation/DocumentAnimations.cpp
index f262f56232118d9b1e0eff6f7412c12457c0726f..dc6628da18791ea0525ad827ca312f240f45b819 100644
--- a/Source/core/animation/DocumentAnimations.cpp
+++ b/Source/core/animation/DocumentAnimations.cpp
@@ -70,8 +70,12 @@ void DocumentAnimations::updateAnimationTimingForGetComputedStyle(Node& node, CS
return;
const Element& element = toElement(node);
if (const ComputedStyle* style = element.computedStyle()) {
+ bool isTransformProperty = property == CSSPropertyRotate
+ || property == CSSPropertyScale
+ || property == CSSPropertyTransform
+ || property == CSSPropertyTranslate;
if ((property == CSSPropertyOpacity && style->isRunningOpacityAnimationOnCompositor())
- || (property == CSSPropertyTransform && style->isRunningTransformAnimationOnCompositor())
+ || (isTransformProperty && style->isRunningTransformAnimationOnCompositor())
|| (property == CSSPropertyWebkitFilter && style->isRunningFilterAnimationOnCompositor())) {
updateAnimationTiming(element.document(), TimingUpdateOnDemand);
}
« no previous file with comments | « Source/core/animation/CompositorAnimations.cpp ('k') | Source/core/animation/EffectModel.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698