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

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

Issue 1238943004: CSSValue Immediates: Replace CSSValue usage with const references (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@cssvalue_patch_1
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 90e10b35c2f43752c1144a230460645c9ae2a0cc..6fab5926a6ebe0a97b49ea329de05548f77242bc 100644
--- a/Source/core/animation/CSSValueInterpolationType.cpp
+++ b/Source/core/animation/CSSValueInterpolationType.cpp
@@ -16,9 +16,8 @@ PassOwnPtrWillBeRawPtr<InterpolationValue> CSSValueInterpolationType::maybeConve
void CSSValueInterpolationType::apply(const InterpolableValue&, const NonInterpolableValue* nonInterpolableValue, StyleResolverState& state) const
{
- NullableCSSValue value = toDefaultNonInterpolableValue(nonInterpolableValue)->cssValue();
- if (value)
- StyleBuilder::applyProperty(m_property, state, *value);
+ const CSSValue& value = toDefaultNonInterpolableValue(nonInterpolableValue)->cssValue();
+ 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/ConstantStyleInterpolation.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698