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

Unified Diff: Source/core/animation/ConstantStyleInterpolation.h

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/ConstantStyleInterpolation.h
diff --git a/Source/core/animation/ConstantStyleInterpolation.h b/Source/core/animation/ConstantStyleInterpolation.h
index 504e06c3c2aa1824b8daacd2e9440f7e0e1b2b21..936e37c7d5267f4927fafff5f93b4e4d6848ed1d 100644
--- a/Source/core/animation/ConstantStyleInterpolation.h
+++ b/Source/core/animation/ConstantStyleInterpolation.h
@@ -12,14 +12,14 @@ namespace blink {
class ConstantStyleInterpolation : public StyleInterpolation {
public:
- static PassRefPtrWillBeRawPtr<ConstantStyleInterpolation> create(CSSValue* value, CSSPropertyID id)
+ static PassRefPtrWillBeRawPtr<ConstantStyleInterpolation> create(CSSValue value, CSSPropertyID id)
{
return adoptRefWillBeNoop(new ConstantStyleInterpolation(value, id));
}
virtual void apply(StyleResolverState& state) const override
{
- StyleBuilder::applyProperty(m_id, state, m_value.get());
+ StyleBuilder::applyProperty(m_id, state, m_value);
}
DEFINE_INLINE_VIRTUAL_TRACE()
@@ -29,12 +29,12 @@ public:
}
private:
- ConstantStyleInterpolation(CSSValue* value, CSSPropertyID id)
+ ConstantStyleInterpolation(CSSValue value, CSSPropertyID id)
: StyleInterpolation(InterpolableList::create(0), InterpolableList::create(0), id)
, m_value(value)
{ }
- RefPtrWillBeMember<CSSValue> m_value;
+ CSSValue m_value;
};
}
« no previous file with comments | « Source/core/animation/ColorStyleInterpolationTest.cpp ('k') | Source/core/animation/DeferredLegacyStyleInterpolation.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698