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

Side by Side Diff: third_party/WebKit/Source/core/animation/animatable/AnimatableValueKeyframe.cpp

Issue 2750293003: Delete unused AnimatableValue code (Closed)
Patch Set: Fix unit tests Created 3 years, 9 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "core/animation/animatable/AnimatableValueKeyframe.h" 5 #include "core/animation/animatable/AnimatableValueKeyframe.h"
6 6
7 #include "core/animation/LegacyStyleInterpolation.h" 7 #include "core/animation/LegacyStyleInterpolation.h"
8 8
9 namespace blink { 9 namespace blink {
10 10
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 46
47 PassRefPtr<Interpolation> 47 PassRefPtr<Interpolation>
48 AnimatableValueKeyframe::PropertySpecificKeyframe::createInterpolation( 48 AnimatableValueKeyframe::PropertySpecificKeyframe::createInterpolation(
49 const PropertyHandle& property, 49 const PropertyHandle& property,
50 const Keyframe::PropertySpecificKeyframe& end) const { 50 const Keyframe::PropertySpecificKeyframe& end) const {
51 return LegacyStyleInterpolation::create( 51 return LegacyStyleInterpolation::create(
52 value(), toAnimatableValuePropertySpecificKeyframe(end).value(), 52 value(), toAnimatableValuePropertySpecificKeyframe(end).value(),
53 property.cssProperty()); 53 property.cssProperty());
54 } 54 }
55 55
56 PassRefPtr<Keyframe::PropertySpecificKeyframe>
57 AnimatableValueKeyframe::PropertySpecificKeyframe::neutralKeyframe(
58 double offset,
59 PassRefPtr<TimingFunction> easing) const {
60 return create(offset, std::move(easing), AnimatableValue::neutralValue(),
61 EffectModel::CompositeAdd);
62 }
63
64 } // namespace blink 56 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698