Commit 5f9e9955 authored by haraken@chromium.org's avatar haraken@chromium.org

Oilpan: Build fix for oilpan

Some change used PassRefPtrWillBeRawPtr for AnimatableColor which is not yet on the heap.
Thus build is broken in oilpan bots. This CL fixes it.

TBR=kouhei

Review URL: https://codereview.chromium.org/183183010

git-svn-id: svn://svn.chromium.org/blink/trunk@168574 bbb929c8-8fbe-4397-9dbb-9b2b20218538
parent 67afbdf2
...@@ -82,8 +82,8 @@ TEST(AnimationAnimatableColorTest, Distance) ...@@ -82,8 +82,8 @@ TEST(AnimationAnimatableColorTest, Distance)
EXPECT_NEAR(60.0 / 255, AnimatableColorImpl(Color(0x3C000000)).distanceTo(Color(0x00FFFFFF)), 0.00000001); EXPECT_NEAR(60.0 / 255, AnimatableColorImpl(Color(0x3C000000)).distanceTo(Color(0x00FFFFFF)), 0.00000001);
EXPECT_NEAR(60.0 / 255, AnimatableColorImpl(Color(0x3C000000)).distanceTo(Color(0x3C00FF00)), 0.00000001); EXPECT_NEAR(60.0 / 255, AnimatableColorImpl(Color(0x3C000000)).distanceTo(Color(0x3C00FF00)), 0.00000001);
RefPtrWillBeRawPtr<AnimatableColor> first = AnimatableColor::create(AnimatableColorImpl(Color(0xFF53647C)), AnimatableColorImpl(Color(0xFF000000))); RefPtr<AnimatableColor> first = AnimatableColor::create(AnimatableColorImpl(Color(0xFF53647C)), AnimatableColorImpl(Color(0xFF000000)));
RefPtrWillBeRawPtr<AnimatableColor> second = AnimatableColor::create(AnimatableColorImpl(Color(0xFF506070)), AnimatableColorImpl(Color(0xFF000000))); RefPtr<AnimatableColor> second = AnimatableColor::create(AnimatableColorImpl(Color(0xFF506070)), AnimatableColorImpl(Color(0xFF000000)));
EXPECT_NEAR(13.0 / 255, AnimatableValue::distance(first.get(), second.get()), 0.00000001); EXPECT_NEAR(13.0 / 255, AnimatableValue::distance(first.get(), second.get()), 0.00000001);
} }
......
...@@ -90,9 +90,9 @@ TEST(AnimationAnimatableDoubleTest, Add) ...@@ -90,9 +90,9 @@ TEST(AnimationAnimatableDoubleTest, Add)
TEST(AnimationAnimatableDoubleTest, Distance) TEST(AnimationAnimatableDoubleTest, Distance)
{ {
RefPtrWillBeRawPtr<AnimatableDouble> first = AnimatableDouble::create(-1.5); RefPtr<AnimatableDouble> first = AnimatableDouble::create(-1.5);
RefPtrWillBeRawPtr<AnimatableDouble> second = AnimatableDouble::create(2.25); RefPtr<AnimatableDouble> second = AnimatableDouble::create(2.25);
RefPtrWillBeRawPtr<AnimatableDouble> third = AnimatableDouble::create(3); RefPtr<AnimatableDouble> third = AnimatableDouble::create(3);
EXPECT_DOUBLE_EQ(3.75, AnimatableValue::distance(first.get(), second.get())); EXPECT_DOUBLE_EQ(3.75, AnimatableValue::distance(first.get(), second.get()));
EXPECT_DOUBLE_EQ(0.75, AnimatableValue::distance(second.get(), third.get())); EXPECT_DOUBLE_EQ(0.75, AnimatableValue::distance(second.get(), third.get()));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment