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

Unified Diff: Source/core/animation/animatable/AnimatableImage.cpp

Issue 1238943004: CSSValue Immediates: Replace CSSValue usage with const references (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@cssvalue_patch_1
Patch Set: Rebase Created 5 years, 5 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
Index: Source/core/animation/animatable/AnimatableImage.cpp
diff --git a/Source/core/animation/animatable/AnimatableImage.cpp b/Source/core/animation/animatable/AnimatableImage.cpp
index 4e0b740af11c27315df552fc4c8171029baff145..9e157abb6ee80bd8c1ca47ab73bd59acc99146a3 100644
--- a/Source/core/animation/animatable/AnimatableImage.cpp
+++ b/Source/core/animation/animatable/AnimatableImage.cpp
@@ -52,8 +52,8 @@ PassRefPtrWillBeRawPtr<AnimatableValue> AnimatableImage::interpolateTo(const Ani
if (fraction <= 0 || fraction >= 1 || usesDefaultInterpolationWith(value))
return defaultInterpolateTo(this, value, fraction);
- CSSValue fromValue = toCSSValue();
- CSSValue toValue = toAnimatableImage(value)->toCSSValue();
+ const CSSValue& fromValue = toCSSValue();
+ const CSSValue& toValue = toAnimatableImage(value)->toCSSValue();
RefPtrWillBeRawPtr<CSSCrossfadeValue> crossfadeValue = CSSCrossfadeValue::create(fromValue, toValue);
crossfadeValue->setPercentage(CSSPrimitiveValue::create(fraction, CSSPrimitiveValue::CSS_NUMBER));
« no previous file with comments | « Source/core/animation/animatable/AnimatableImage.h ('k') | Source/core/animation/animatable/AnimatableUnknown.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698