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

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

Issue 1276183004: Oilpan: Unship oilpan from temporary animation objects (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 3 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..b08353c93ac0ee2ead1ac55885a3ef33cd2454fc 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(PassRefPtrWillBeRawPtr<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; }
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);
}
@@ -76,7 +70,7 @@ private:
AnimatableType type() const override { return TypeUnknown; }
bool equalTo(const AnimatableValue*) const override;
- const RefPtrWillBeMember<CSSValue> m_value;
+ const RefPtrWillBePersistent<CSSValue> m_value;
};
DEFINE_ANIMATABLE_VALUE_TYPE_CASTS(AnimatableUnknown, isUnknown());

Powered by Google App Engine
This is Rietveld 408576698