Index: Source/core/animation/css/CSSAnimatableValueFactory.cpp |
diff --git a/Source/core/animation/css/CSSAnimatableValueFactory.cpp b/Source/core/animation/css/CSSAnimatableValueFactory.cpp |
index ae7c1ff97b7d370ed4ec7444ba718d48590ee98b..52deca413d367a00a507c3e6af5b04032d881cc0 100644 |
--- a/Source/core/animation/css/CSSAnimatableValueFactory.cpp |
+++ b/Source/core/animation/css/CSSAnimatableValueFactory.cpp |
@@ -179,8 +179,8 @@ inline static PassRefPtrWillBeRawPtr<AnimatableValue> createFromLengthSize(const |
inline static PassRefPtrWillBeRawPtr<AnimatableValue> createFromStyleImage(StyleImage* image) |
{ |
if (image) { |
- if (RefPtrWillBeRawPtr<CSSValue> cssValue = image->cssValue()) |
- return AnimatableImage::create(cssValue.release()); |
+ if (NullableCSSValue cssValue = image->cssValue()) |
+ return AnimatableImage::create(*cssValue); |
} |
return AnimatableUnknown::create(CSSValueNone); |
} |