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

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

Issue 2761693002: Wrapped PassRefPtrs in move where passed to RefPtr constructor. (Closed)
Patch Set: Added move wraps for multiple instances in 1 line. 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 #ifndef Keyframe_h 5 #ifndef Keyframe_h
6 #define Keyframe_h 6 #define Keyframe_h
7 7
8 #include "core/CoreExport.h" 8 #include "core/CoreExport.h"
9 #include "core/animation/AnimationEffectReadOnly.h" 9 #include "core/animation/AnimationEffectReadOnly.h"
10 #include "core/animation/EffectModel.h" 10 #include "core/animation/EffectModel.h"
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 const PropertyHandle&) const = 0; 117 const PropertyHandle&) const = 0;
118 118
119 protected: 119 protected:
120 Keyframe() 120 Keyframe()
121 : m_offset(nullValue()), 121 : m_offset(nullValue()),
122 m_composite(EffectModel::CompositeReplace), 122 m_composite(EffectModel::CompositeReplace),
123 m_easing(LinearTimingFunction::shared()) {} 123 m_easing(LinearTimingFunction::shared()) {}
124 Keyframe(double offset, 124 Keyframe(double offset,
125 EffectModel::CompositeOperation composite, 125 EffectModel::CompositeOperation composite,
126 PassRefPtr<TimingFunction> easing) 126 PassRefPtr<TimingFunction> easing)
127 : m_offset(offset), m_composite(composite), m_easing(easing) {} 127 : m_offset(offset), m_composite(composite), m_easing(std::move(easing)) {}
128 128
129 double m_offset; 129 double m_offset;
130 EffectModel::CompositeOperation m_composite; 130 EffectModel::CompositeOperation m_composite;
131 RefPtr<TimingFunction> m_easing; 131 RefPtr<TimingFunction> m_easing;
132 }; 132 };
133 133
134 using PropertySpecificKeyframe = Keyframe::PropertySpecificKeyframe; 134 using PropertySpecificKeyframe = Keyframe::PropertySpecificKeyframe;
135 135
136 } // namespace blink 136 } // namespace blink
137 137
138 #endif // Keyframe_h 138 #endif // Keyframe_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698