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

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

Issue 1164573002: CSSValue Immediates: Change CSSValue to an object instead of a pointer (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
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
« no previous file with comments | « Source/core/animation/ImageStyleInterpolation.h ('k') | Source/core/animation/KeyframeEffectModelTest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/animation/ImageStyleInterpolation.cpp
diff --git a/Source/core/animation/ImageStyleInterpolation.cpp b/Source/core/animation/ImageStyleInterpolation.cpp
index fd0306b185fd403dc93e6a0dbd3eb875c74db4b4..c3e6f995438c1f1bfd98049abf4cf2c6d49ec3d1 100644
--- a/Source/core/animation/ImageStyleInterpolation.cpp
+++ b/Source/core/animation/ImageStyleInterpolation.cpp
@@ -19,17 +19,17 @@ void ImageStyleInterpolation::apply(StyleResolverState& state) const
{
double cachedValue = toInterpolableNumber(m_cachedValue.get())->value();
if (cachedValue <= 0.0) {
- StyleBuilder::applyProperty(m_id, state, m_initialImage.get());
+ StyleBuilder::applyProperty(m_id, state, m_initialImage);
return;
}
if (cachedValue >= 1.0) {
- StyleBuilder::applyProperty(m_id, state, m_finalImage.get());
+ StyleBuilder::applyProperty(m_id, state, m_finalImage);
return;
}
RefPtrWillBeRawPtr<CSSCrossfadeValue> crossfadeValue = CSSCrossfadeValue::create(m_initialImage, m_finalImage);
crossfadeValue->setPercentage(CSSPrimitiveValue::create(cachedValue, CSSPrimitiveValue::CSS_NUMBER));
- StyleBuilder::applyProperty(m_id, state, crossfadeValue.get());
+ StyleBuilder::applyProperty(m_id, state, *crossfadeValue);
}
DEFINE_TRACE(ImageStyleInterpolation)
« no previous file with comments | « Source/core/animation/ImageStyleInterpolation.h ('k') | Source/core/animation/KeyframeEffectModelTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698