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

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

Issue 96093002: Web Animations CSS: Fixing startDelay for compositor translation. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@origin-master
Patch Set: Created 7 years, 1 month 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 | Source/core/animation/CompositorAnimationsTest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/animation/CompositorAnimations.cpp
diff --git a/Source/core/animation/CompositorAnimations.cpp b/Source/core/animation/CompositorAnimations.cpp
index 0b76bccf0e111b50f59ab65b6bc6b01d83f8b27b..0406bb2ad220def7fd7eb97e287cf40359de8aa4 100644
--- a/Source/core/animation/CompositorAnimations.cpp
+++ b/Source/core/animation/CompositorAnimations.cpp
@@ -357,8 +357,9 @@ bool CompositorAnimationsImpl::convertTimingForCompositor(const Timing& timing,
ASSERT(out.adjustedIterationCount > 0);
}
- out.scaledTimeOffset = scaledStartDelay + skippedIterations * out.scaledDuration;
- ASSERT(out.scaledTimeOffset <= 0);
+ // Compositor's time offset is positive for seeking into the animation.
+ out.scaledTimeOffset = -(scaledStartDelay + skippedIterations * out.scaledDuration);
+ ASSERT(out.scaledTimeOffset >= 0);
return true;
}
« no previous file with comments | « no previous file | Source/core/animation/CompositorAnimationsTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698