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

Unified Diff: Source/core/animation/LengthPairStyleInterpolation.cpp

Issue 1226123008: CSSValue Immediates: Replace CSSPrimitiveValue usage with const references (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@cssvalue_patch_4_attempt_2
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/LengthPairStyleInterpolation.cpp
diff --git a/Source/core/animation/LengthPairStyleInterpolation.cpp b/Source/core/animation/LengthPairStyleInterpolation.cpp
index 257441b095abb0b1cd998da6baa92f125753a5e7..ac5c609e7f3512f2dd3785cfedc6cd66d7ad9226 100644
--- a/Source/core/animation/LengthPairStyleInterpolation.cpp
+++ b/Source/core/animation/LengthPairStyleInterpolation.cpp
@@ -22,8 +22,8 @@ PassOwnPtrWillBeRawPtr<InterpolableValue> LengthPairStyleInterpolation::lengthPa
Pair* pair = toCSSPrimitiveValue(value).getPairValue();
ASSERT(pair);
- result->set(0, LengthStyleInterpolation::toInterpolableValue(CSSValue(*pair->first())));
- result->set(1, LengthStyleInterpolation::toInterpolableValue(CSSValue(*pair->second())));
+ result->set(0, LengthStyleInterpolation::toInterpolableValue(pair->first()));
+ result->set(1, LengthStyleInterpolation::toInterpolableValue(pair->second()));
return result.release();
}
« no previous file with comments | « Source/core/animation/LengthBoxStyleInterpolation.cpp ('k') | Source/core/animation/LengthPairStyleInterpolationTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698