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

Unified Diff: Source/core/animation/animatable/AnimatableUnknown.h

Issue 1305383006: Oilpan: Unship CSSValues and AnimatableValues Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 4 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/animatable/AnimatableUnknown.h
diff --git a/Source/core/animation/animatable/AnimatableUnknown.h b/Source/core/animation/animatable/AnimatableUnknown.h
index 8105550ecd0849e6445623c289ab67246c4803b4..c56dee01922a998525cb31bb5c02a435f9d8898d 100644
--- a/Source/core/animation/animatable/AnimatableUnknown.h
+++ b/Source/core/animation/animatable/AnimatableUnknown.h
@@ -41,26 +41,20 @@ class AnimatableUnknown final : public AnimatableValue {
public:
~AnimatableUnknown() override { }
- static PassRefPtrWillBeRawPtr<AnimatableUnknown> create(PassRefPtrWillBeRawPtr<CSSValue> value)
+ static PassRefPtr<AnimatableUnknown> create(PassRefPtr<CSSValue> value)
{
- return adoptRefWillBeNoop(new AnimatableUnknown(value));
+ return adoptRef(new AnimatableUnknown(value));
}
- static PassRefPtrWillBeRawPtr<AnimatableUnknown> create(CSSValueID value)
+ static PassRefPtr<AnimatableUnknown> create(CSSValueID value)
{
- return adoptRefWillBeNoop(new AnimatableUnknown(cssValuePool().createIdentifierValue(value)));
+ return adoptRef(new AnimatableUnknown(cssValuePool().createIdentifierValue(value)));
}
- PassRefPtrWillBeRawPtr<CSSValue> toCSSValue() const { return m_value; }
+ PassRefPtr<CSSValue> toCSSValue() const { return m_value; }
CSSValueID toCSSValueID() const { return toCSSPrimitiveValue(m_value.get())->getValueID(); }
- DEFINE_INLINE_VIRTUAL_TRACE()
- {
- visitor->trace(m_value);
- AnimatableValue::trace(visitor);
- }
-
protected:
- PassRefPtrWillBeRawPtr<AnimatableValue> interpolateTo(const AnimatableValue* value, double fraction) const override
+ PassRefPtr<AnimatableValue> interpolateTo(const AnimatableValue* value, double fraction) const override
{
return defaultInterpolateTo(this, value, fraction);
}
@@ -68,7 +62,7 @@ protected:
bool usesDefaultInterpolationWith(const AnimatableValue*) const override { return true; }
private:
- explicit AnimatableUnknown(PassRefPtrWillBeRawPtr<CSSValue> value)
+ explicit AnimatableUnknown(PassRefPtr<CSSValue> value)
: m_value(value)
{
ASSERT(m_value);
@@ -76,7 +70,7 @@ private:
AnimatableType type() const override { return TypeUnknown; }
bool equalTo(const AnimatableValue*) const override;
- const RefPtrWillBeMember<CSSValue> m_value;
+ const RefPtr<CSSValue> m_value;
};
DEFINE_ANIMATABLE_VALUE_TYPE_CASTS(AnimatableUnknown, isUnknown());
« no previous file with comments | « Source/core/animation/animatable/AnimatableTransform.cpp ('k') | Source/core/animation/animatable/AnimatableUnknownTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698