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

Unified Diff: Source/core/animation/LengthPairStyleInterpolationTest.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/LengthPairStyleInterpolationTest.cpp
diff --git a/Source/core/animation/LengthPairStyleInterpolationTest.cpp b/Source/core/animation/LengthPairStyleInterpolationTest.cpp
index 1671d5b3b85507cd8457469575a78410b4b844c8..3e24621199aad831d9b2a6af24ee1e0c72a90379 100644
--- a/Source/core/animation/LengthPairStyleInterpolationTest.cpp
+++ b/Source/core/animation/LengthPairStyleInterpolationTest.cpp
@@ -39,11 +39,11 @@ protected:
Pair* pair = toCSSPrimitiveValue(value).getPairValue();
ASSERT_TRUE(pair);
- EXPECT_EQ(toCSSPrimitiveValue(*pair->first()).getDoubleValue(), first);
- EXPECT_EQ(toCSSPrimitiveValue(*pair->second()).getDoubleValue(), second);
+ EXPECT_EQ(pair->first().getDoubleValue(), first);
+ EXPECT_EQ(pair->second().getDoubleValue(), second);
- EXPECT_EQ(toCSSPrimitiveValue(*pair->first()).primitiveType(), unitType);
- EXPECT_EQ(toCSSPrimitiveValue(*pair->second()).primitiveType(), unitType);
+ EXPECT_EQ(pair->first().primitiveType(), unitType);
+ EXPECT_EQ(pair->second().primitiveType(), unitType);
}
};
« no previous file with comments | « Source/core/animation/LengthPairStyleInterpolation.cpp ('k') | Source/core/animation/LengthStyleInterpolation.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698