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

Unified Diff: Source/core/animation/DocumentAnimations.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/DocumentAnimations.cpp
diff --git a/Source/core/animation/DocumentAnimations.cpp b/Source/core/animation/DocumentAnimations.cpp
index f262f56232118d9b1e0eff6f7412c12457c0726f..25f71c5e43b9acb24f69e07f53a5b179f263fd6b 100644
--- a/Source/core/animation/DocumentAnimations.cpp
+++ b/Source/core/animation/DocumentAnimations.cpp
@@ -72,6 +72,9 @@ void DocumentAnimations::updateAnimationTimingForGetComputedStyle(Node& node, CS
if (const ComputedStyle* style = element.computedStyle()) {
if ((property == CSSPropertyOpacity && style->isRunningOpacityAnimationOnCompositor())
|| (property == CSSPropertyTransform && style->isRunningTransformAnimationOnCompositor())
+ || (property == CSSPropertyTranslate && style->isRunningTransformAnimationOnCompositor())
+ || (property == CSSPropertyScale && style->isRunningTransformAnimationOnCompositor())
+ || (property == CSSPropertyRotate && style->isRunningTransformAnimationOnCompositor())
|| (property == CSSPropertyWebkitFilter && style->isRunningFilterAnimationOnCompositor())) {
updateAnimationTiming(element.document(), TimingUpdateOnDemand);
}

Powered by Google App Engine
This is Rietveld 408576698