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

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

Issue 1033943002: Rename LayoutStyle to papayawhip (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: ensureComputedStyle Created 5 years, 8 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 | Annotate | Revision Log
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 "config.h" 5 #include "config.h"
6 #include "core/animation/animatable/AnimatableValueKeyframe.h" 6 #include "core/animation/animatable/AnimatableValueKeyframe.h"
7 7
8 #include "core/animation/LegacyStyleInterpolation.h" 8 #include "core/animation/LegacyStyleInterpolation.h"
9 9
10 namespace blink { 10 namespace blink {
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 { 55 {
56 ASSERT(!isNull(m_offset)); 56 ASSERT(!isNull(m_offset));
57 } 57 }
58 58
59 PassOwnPtrWillBeRawPtr<Keyframe::PropertySpecificKeyframe> AnimatableValueKeyfra me::PropertySpecificKeyframe::cloneWithOffset(double offset) const 59 PassOwnPtrWillBeRawPtr<Keyframe::PropertySpecificKeyframe> AnimatableValueKeyfra me::PropertySpecificKeyframe::cloneWithOffset(double offset) const
60 { 60 {
61 Keyframe::PropertySpecificKeyframe* theClone = new PropertySpecificKeyframe( offset, m_easing, m_value); 61 Keyframe::PropertySpecificKeyframe* theClone = new PropertySpecificKeyframe( offset, m_easing, m_value);
62 return adoptPtrWillBeNoop(theClone); 62 return adoptPtrWillBeNoop(theClone);
63 } 63 }
64 64
65 PassRefPtrWillBeRawPtr<Interpolation> AnimatableValueKeyframe::PropertySpecificK eyframe::maybeCreateInterpolation(CSSPropertyID property, Keyframe::PropertySpec ificKeyframe& end, Element*, const LayoutStyle*) const 65 PassRefPtrWillBeRawPtr<Interpolation> AnimatableValueKeyframe::PropertySpecificK eyframe::maybeCreateInterpolation(CSSPropertyID property, Keyframe::PropertySpec ificKeyframe& end, Element*, const ComputedStyle*) const
66 { 66 {
67 AnimatableValuePropertySpecificKeyframe& to = toAnimatableValuePropertySpeci ficKeyframe(end); 67 AnimatableValuePropertySpecificKeyframe& to = toAnimatableValuePropertySpeci ficKeyframe(end);
68 return LegacyStyleInterpolation::create(value(), to.value(), property); 68 return LegacyStyleInterpolation::create(value(), to.value(), property);
69 } 69 }
70 70
71 PassOwnPtrWillBeRawPtr<Keyframe::PropertySpecificKeyframe> AnimatableValueKeyfra me::PropertySpecificKeyframe::neutralKeyframe(double offset, PassRefPtr<TimingFu nction> easing) const 71 PassOwnPtrWillBeRawPtr<Keyframe::PropertySpecificKeyframe> AnimatableValueKeyfra me::PropertySpecificKeyframe::neutralKeyframe(double offset, PassRefPtr<TimingFu nction> easing) const
72 { 72 {
73 return adoptPtrWillBeNoop(new AnimatableValueKeyframe::PropertySpecificKeyfr ame(offset, easing, AnimatableValue::neutralValue(), AnimationEffect::CompositeA dd)); 73 return adoptPtrWillBeNoop(new AnimatableValueKeyframe::PropertySpecificKeyfr ame(offset, easing, AnimatableValue::neutralValue(), AnimationEffect::CompositeA dd));
74 } 74 }
75 75
76 DEFINE_TRACE(AnimatableValueKeyframe::PropertySpecificKeyframe) 76 DEFINE_TRACE(AnimatableValueKeyframe::PropertySpecificKeyframe)
77 { 77 {
78 visitor->trace(m_value); 78 visitor->trace(m_value);
79 Keyframe::PropertySpecificKeyframe::trace(visitor); 79 Keyframe::PropertySpecificKeyframe::trace(visitor);
80 } 80 }
81 81
82 } 82 }
OLDNEW
« no previous file with comments | « Source/core/animation/animatable/AnimatableValueKeyframe.h ('k') | Source/core/animation/animatable/AnimatableVisibility.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698