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

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

Issue 1318543010: Change first() and second() in CSSPairValue to return const references (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Review feedback Created 5 years, 4 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 e15120aa2ec36bfa602aec890a2d9ed8f27fc67c..6fb12f91f9e7bc9d9bc1fc6c1363c635f59793bc 100644
--- a/Source/core/animation/LengthPairStyleInterpolation.cpp
+++ b/Source/core/animation/LengthPairStyleInterpolation.cpp
@@ -21,8 +21,8 @@ PassOwnPtrWillBeRawPtr<InterpolableValue> LengthPairStyleInterpolation::lengthPa
OwnPtrWillBeRawPtr<InterpolableList> result = InterpolableList::create(2);
const CSSValuePair& pair = toCSSValuePair(value);
- result->set(0, LengthStyleInterpolation::toInterpolableValue(*pair.first()));
- result->set(1, LengthStyleInterpolation::toInterpolableValue(*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/DeferredLegacyStyleInterpolation.cpp ('k') | Source/core/animation/LengthPairStyleInterpolationTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698