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

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

Issue 1225553002: CSSValue Immediates: Make CSSPrimitiveValue a container (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/LengthBoxStyleInterpolationTest.cpp
diff --git a/Source/core/animation/LengthBoxStyleInterpolationTest.cpp b/Source/core/animation/LengthBoxStyleInterpolationTest.cpp
index bdd844ae8b11943f7467d300483d9346559a5e5d..1672dac9bc381c9283ea2604b5bbb83b8fbd7801 100644
--- a/Source/core/animation/LengthBoxStyleInterpolationTest.cpp
+++ b/Source/core/animation/LengthBoxStyleInterpolationTest.cpp
@@ -36,15 +36,15 @@ protected:
EXPECT_TRUE(value.isPrimitiveValue());
Rect* rect = toCSSPrimitiveValue(value).getRectValue();
- EXPECT_EQ(rect->left()->getDoubleValue(), left);
- EXPECT_EQ(rect->right()->getDoubleValue(), right);
- EXPECT_EQ(rect->top()->getDoubleValue(), top);
- EXPECT_EQ(rect->bottom()->getDoubleValue(), bottom);
-
- EXPECT_EQ(unitType, rect->left()->primitiveType());
- EXPECT_EQ(unitType, rect->right()->primitiveType());
- EXPECT_EQ(unitType, rect->top()->primitiveType());
- EXPECT_EQ(unitType, rect->bottom()->primitiveType());
+ EXPECT_EQ(rect->left().getDoubleValue(), left);
+ EXPECT_EQ(rect->right().getDoubleValue(), right);
+ EXPECT_EQ(rect->top().getDoubleValue(), top);
+ EXPECT_EQ(rect->bottom().getDoubleValue(), bottom);
+
+ EXPECT_EQ(unitType, rect->left().primitiveType());
+ EXPECT_EQ(unitType, rect->right().primitiveType());
+ EXPECT_EQ(unitType, rect->top().primitiveType());
+ EXPECT_EQ(unitType, rect->bottom().primitiveType());
}
};
« no previous file with comments | « Source/core/animation/LengthBoxStyleInterpolation.cpp ('k') | Source/core/animation/LengthPairStyleInterpolation.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698