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

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

Issue 1303173007: Oilpan: Unship Oilpan from CSSValues Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 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/SVGStrokeDasharrayStyleInterpolationTest.cpp
diff --git a/Source/core/animation/SVGStrokeDasharrayStyleInterpolationTest.cpp b/Source/core/animation/SVGStrokeDasharrayStyleInterpolationTest.cpp
index 37fb08c9f953de4cba656e8e200797e2e8820f70..b5274ae53cea9dbaaa65cd1fbd8c99066316cac1 100644
--- a/Source/core/animation/SVGStrokeDasharrayStyleInterpolationTest.cpp
+++ b/Source/core/animation/SVGStrokeDasharrayStyleInterpolationTest.cpp
@@ -14,12 +14,12 @@ namespace blink {
class AnimationSVGStrokeDasharrayStyleInterpolationTest : public ::testing::Test {
protected:
- static PassRefPtrWillBeRawPtr<CSSValueList> interpolableValueToStrokeDasharray(const InterpolableValue& value)
+ static PassRefPtr<CSSValueList> interpolableValueToStrokeDasharray(const InterpolableValue& value)
{
return SVGStrokeDasharrayStyleInterpolation::interpolableValueToStrokeDasharray(value);
}
- static PassRefPtrWillBeRawPtr<CSSValueList> roundTrip(const CSSValue& value)
+ static PassRefPtr<CSSValueList> roundTrip(const CSSValue& value)
{
RefPtrWillBeRawPtr<SVGStrokeDasharrayStyleInterpolation> interpolation = SVGStrokeDasharrayStyleInterpolation::maybeCreate(value, value, CSSPropertyStrokeDasharray);
ASSERT(interpolation);
@@ -38,12 +38,12 @@ protected:
TEST_F(AnimationSVGStrokeDasharrayStyleInterpolationTest, Zero)
{
- RefPtrWillBeRawPtr<CSSValueList> start = CSSValueList::createCommaSeparated();
+ RefPtr<CSSValueList> start = CSSValueList::createCommaSeparated();
start->append(CSSPrimitiveValue::create(0, CSSPrimitiveValue::UnitType::Percentage));
start->append(CSSPrimitiveValue::create(0, CSSPrimitiveValue::UnitType::Ems));
start->append(CSSPrimitiveValue::create(0, CSSPrimitiveValue::UnitType::Pixels));
- RefPtrWillBeRawPtr<CSSValueList> value = roundTrip(*start);
+ RefPtr<CSSValueList> value = roundTrip(*start);
EXPECT_EQ(value->length(), 3u);
testPrimitiveValue(*value->item(0), 0, CSSPrimitiveValue::UnitType::Percentage);
testPrimitiveValue(*value->item(1), 0, CSSPrimitiveValue::UnitType::Ems);
@@ -52,14 +52,14 @@ TEST_F(AnimationSVGStrokeDasharrayStyleInterpolationTest, Zero)
TEST_F(AnimationSVGStrokeDasharrayStyleInterpolationTest, SingleUnit)
{
- RefPtrWillBeRawPtr<CSSValueList> start = CSSValueList::createCommaSeparated();
+ RefPtr<CSSValueList> start = CSSValueList::createCommaSeparated();
start->append(CSSPrimitiveValue::create(0, CSSPrimitiveValue::UnitType::Pixels));
start->append(CSSPrimitiveValue::create(10, CSSPrimitiveValue::UnitType::Ems));
start->append(CSSPrimitiveValue::create(-20, CSSPrimitiveValue::UnitType::Ems));
start->append(CSSPrimitiveValue::create(0, CSSPrimitiveValue::UnitType::Percentage));
start->append(CSSPrimitiveValue::create(30, CSSPrimitiveValue::UnitType::Ems));
- RefPtrWillBeRawPtr<CSSValueList> value = roundTrip(*start);
+ RefPtr<CSSValueList> value = roundTrip(*start);
EXPECT_EQ(value->length(), 5u);
testPrimitiveValue(*value->item(0), 0, CSSPrimitiveValue::UnitType::Pixels);
testPrimitiveValue(*value->item(1), 10, CSSPrimitiveValue::UnitType::Ems);
@@ -70,9 +70,9 @@ TEST_F(AnimationSVGStrokeDasharrayStyleInterpolationTest, SingleUnit)
TEST_F(AnimationSVGStrokeDasharrayStyleInterpolationTest, None)
{
- RefPtrWillBeRawPtr<CSSPrimitiveValue> start = CSSPrimitiveValue::createIdentifier(CSSValueNone);
+ RefPtr<CSSPrimitiveValue> start = CSSPrimitiveValue::createIdentifier(CSSValueNone);
- RefPtrWillBeRawPtr<CSSValueList> value = roundTrip(*start);
+ RefPtr<CSSValueList> value = roundTrip(*start);
EXPECT_EQ(value->length(), 1u);
testPrimitiveValue(*value->item(0), 0, CSSPrimitiveValue::UnitType::Pixels);
}
« no previous file with comments | « Source/core/animation/SVGStrokeDasharrayStyleInterpolation.cpp ('k') | Source/core/animation/ShadowStyleInterpolation.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698