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

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

Issue 2236193002: WIP: Implement CSS transitions on top of InterpolationTypes instead of AnimatableValues (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@_environmentStyle
Patch Set: Created 4 years, 4 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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/Keyframe.h" 5 #include "core/animation/Keyframe.h"
6 6
7 #include "core/animation/InvalidatableInterpolation.h" 7 #include "core/animation/KeyframeInterpolation.h"
8 #include "core/animation/PropertyInterpolationTypesMapping.h" 8 #include "core/animation/PropertyInterpolationTypesMapping.h"
9 9
10 namespace blink { 10 namespace blink {
11 11
12 PassRefPtr<Interpolation> Keyframe::PropertySpecificKeyframe::createInterpolatio n(PropertyHandle propertyHandle, const Keyframe::PropertySpecificKeyframe& end) const 12 PassRefPtr<Interpolation> Keyframe::PropertySpecificKeyframe::createInterpolatio n(PropertyHandle propertyHandle, const Keyframe::PropertySpecificKeyframe& end) const
13 { 13 {
14 // const_cast to take refs. 14 // const_cast to take refs.
15 return InvalidatableInterpolation::create(propertyHandle, PropertyInterpolat ionTypesMapping::get(propertyHandle), 15 return KeyframeInterpolation::create(propertyHandle, PropertyInterpolationTy pesMapping::get(propertyHandle),
16 const_cast<PropertySpecificKeyframe*>(this), 16 const_cast<PropertySpecificKeyframe*>(this),
17 const_cast<PropertySpecificKeyframe*>(&end)); 17 const_cast<PropertySpecificKeyframe*>(&end));
18 } 18 }
19 19
20 } // namespace blink 20 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698