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

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

Issue 273683005: Web Animations API: Deferred computation of interpolated values (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Add missing test file Created 6 years, 7 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/AnimationStackTest.cpp ('k') | Source/core/animation/InterpolableValue.h » ('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 6d71fc85a7f9d3d79685944daa15ab5a3fd0ec86..f2128db3b61fe273d69f89534086cdbc33a6ad16 100644
--- a/Source/core/animation/CompositorAnimations.cpp
+++ b/Source/core/animation/CompositorAnimations.cpp
@@ -143,7 +143,8 @@ bool CompositorAnimations::isCandidateForAnimationOnCompositor(const Timing& tim
ASSERT(frames.size() >= 2);
for (size_t i = 0; i < frames.size(); ++i) {
const Keyframe::PropertySpecificKeyframe *frame = frames[i].get();
- if (frame->composite() != AnimationEffect::CompositeReplace)
+ // FIXME: Determine candidacy based on the CSSValue instead of a snapshot AnimatableValue.
+ if (frame->composite() != AnimationEffect::CompositeReplace || !frame->getAnimatableValue())
return false;
switch (*it) {
« no previous file with comments | « Source/core/animation/AnimationStackTest.cpp ('k') | Source/core/animation/InterpolableValue.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698