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

Unified Diff: Source/core/animation/CSSValueInterpolationType.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
Index: Source/core/animation/CSSValueInterpolationType.cpp
diff --git a/Source/core/animation/CSSValueInterpolationType.cpp b/Source/core/animation/CSSValueInterpolationType.cpp
index bf765d5cb710155cf456f7e6992b24d513c41ce4..90e10b35c2f43752c1144a230460645c9ae2a0cc 100644
--- a/Source/core/animation/CSSValueInterpolationType.cpp
+++ b/Source/core/animation/CSSValueInterpolationType.cpp
@@ -11,14 +11,14 @@ namespace blink {
PassOwnPtrWillBeRawPtr<InterpolationValue> CSSValueInterpolationType::maybeConvertSingle(const CSSPropertySpecificKeyframe& keyframe, const StyleResolverState*, ConversionCheckers&) const
{
- return InterpolationValue::create(*this, InterpolableList::create(0), DefaultNonInterpolableValue::create(keyframe.value()));
+ return InterpolationValue::create(*this, InterpolableList::create(0), DefaultNonInterpolableValue::create(*keyframe.value()));
}
void CSSValueInterpolationType::apply(const InterpolableValue&, const NonInterpolableValue* nonInterpolableValue, StyleResolverState& state) const
{
- CSSValue* value = toDefaultNonInterpolableValue(nonInterpolableValue)->cssValue();
+ NullableCSSValue value = toDefaultNonInterpolableValue(nonInterpolableValue)->cssValue();
if (value)
- StyleBuilder::applyProperty(m_property, state, value);
+ StyleBuilder::applyProperty(m_property, state, *value);
}
DEFINE_NON_INTERPOLABLE_VALUE_TYPE(DefaultNonInterpolableValue);
« no previous file with comments | « Source/core/animation/CSSValueInterpolationType.h ('k') | Source/core/animation/ColorStyleInterpolation.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698