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

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

Issue 2649103007: Make PropertyHandle instances const references where possible (Closed)
Patch Set: Created 3 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/WebKit/Source/core/animation/animatable/AnimatableValueKeyframe.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/animation/animatable/AnimatableValueKeyframe.cpp
diff --git a/third_party/WebKit/Source/core/animation/animatable/AnimatableValueKeyframe.cpp b/third_party/WebKit/Source/core/animation/animatable/AnimatableValueKeyframe.cpp
index fe315aec718432b074042d7c4b227c9ae63c26af..3ff76d070ede7ce1c575459609e3a8c23366e354 100644
--- a/third_party/WebKit/Source/core/animation/animatable/AnimatableValueKeyframe.cpp
+++ b/third_party/WebKit/Source/core/animation/animatable/AnimatableValueKeyframe.cpp
@@ -33,7 +33,7 @@ PassRefPtr<Keyframe> AnimatableValueKeyframe::clone() const {
PassRefPtr<Keyframe::PropertySpecificKeyframe>
AnimatableValueKeyframe::createPropertySpecificKeyframe(
- PropertyHandle property) const {
+ const PropertyHandle& property) const {
return PropertySpecificKeyframe::create(
offset(), &easing(), propertyValue(property.cssProperty()), composite());
}
@@ -46,7 +46,7 @@ AnimatableValueKeyframe::PropertySpecificKeyframe::cloneWithOffset(
PassRefPtr<Interpolation>
AnimatableValueKeyframe::PropertySpecificKeyframe::createInterpolation(
- PropertyHandle property,
+ const PropertyHandle& property,
const Keyframe::PropertySpecificKeyframe& end) const {
return LegacyStyleInterpolation::create(
value(), toAnimatableValuePropertySpecificKeyframe(end).value(),
« no previous file with comments | « third_party/WebKit/Source/core/animation/animatable/AnimatableValueKeyframe.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698