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

Side by Side Diff: third_party/WebKit/Source/core/animation/KeyframeEffectModel.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 /* 1 /*
2 * Copyright (C) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 return m_keyframeGroups->contains(property); 135 return m_keyframeGroups->contains(property);
136 } 136 }
137 137
138 bool isTransformRelatedEffect() const override; 138 bool isTransformRelatedEffect() const override;
139 139
140 protected: 140 protected:
141 KeyframeEffectModelBase(PassRefPtr<TimingFunction> defaultKeyframeEasing) 141 KeyframeEffectModelBase(PassRefPtr<TimingFunction> defaultKeyframeEasing)
142 : m_lastIteration(0), 142 : m_lastIteration(0),
143 m_lastFraction(std::numeric_limits<double>::quiet_NaN()), 143 m_lastFraction(std::numeric_limits<double>::quiet_NaN()),
144 m_lastIterationDuration(0), 144 m_lastIterationDuration(0),
145 m_defaultKeyframeEasing(defaultKeyframeEasing), 145 m_defaultKeyframeEasing(std::move(defaultKeyframeEasing)),
146 m_hasSyntheticKeyframes(false), 146 m_hasSyntheticKeyframes(false),
147 m_needsCompositorKeyframesSnapshot(true) {} 147 m_needsCompositorKeyframesSnapshot(true) {}
148 148
149 static KeyframeVector normalizedKeyframes(const KeyframeVector& keyframes); 149 static KeyframeVector normalizedKeyframes(const KeyframeVector& keyframes);
150 150
151 // Lazily computes the groups of property-specific keyframes. 151 // Lazily computes the groups of property-specific keyframes.
152 void ensureKeyframeGroups() const; 152 void ensureKeyframeGroups() const;
153 void ensureInterpolationEffectPopulated() const; 153 void ensureInterpolationEffectPopulated() const;
154 154
155 KeyframeVector m_keyframes; 155 KeyframeVector m_keyframes;
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
273 273
274 template <> 274 template <>
275 inline bool KeyframeEffectModel< 275 inline bool KeyframeEffectModel<
276 TransitionKeyframe>::isTransitionKeyframeEffectModel() const { 276 TransitionKeyframe>::isTransitionKeyframeEffectModel() const {
277 return true; 277 return true;
278 } 278 }
279 279
280 } // namespace blink 280 } // namespace blink
281 281
282 #endif // KeyframeEffectModel_h 282 #endif // KeyframeEffectModel_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/animation/Keyframe.h ('k') | third_party/WebKit/Source/core/animation/KeyframeEffectModel.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698