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

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

Issue 184313004: Move all RefPtr's to CSSValue to oilpan transition types, except for the one in CSSCursorImageValue. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix comment Created 6 years, 9 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
« no previous file with comments | « Source/core/animation/AnimatableNeutralTest.cpp ('k') | Source/core/animation/AnimatableUnknownTest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/animation/AnimatableUnknown.h
diff --git a/Source/core/animation/AnimatableUnknown.h b/Source/core/animation/AnimatableUnknown.h
index 4080c4d75fdc178ac4f740da865b56ec11dd35c0..ec569258e062e4356d95892a8430caf81f44e5b8 100644
--- a/Source/core/animation/AnimatableUnknown.h
+++ b/Source/core/animation/AnimatableUnknown.h
@@ -41,7 +41,7 @@ class AnimatableUnknown FINAL : public AnimatableValue {
public:
virtual ~AnimatableUnknown() { }
- static PassRefPtr<AnimatableUnknown> create(PassRefPtr<CSSValue> value)
+ static PassRefPtr<AnimatableUnknown> create(PassRefPtrWillBeRawPtr<CSSValue> value)
{
return adoptRef(new AnimatableUnknown(value));
}
@@ -50,7 +50,7 @@ public:
return adoptRef(new AnimatableUnknown(cssValuePool().createIdentifierValue(value)));
}
- PassRefPtr<CSSValue> toCSSValue() const { return m_value; }
+ PassRefPtrWillBeRawPtr<CSSValue> toCSSValue() const { return m_value; }
CSSValueID toCSSValueID() const { return toCSSPrimitiveValue(m_value.get())->getValueID(); }
protected:
@@ -62,7 +62,7 @@ protected:
virtual bool usesDefaultInterpolationWith(const AnimatableValue*) const OVERRIDE { return true; }
private:
- explicit AnimatableUnknown(PassRefPtr<CSSValue> value)
+ explicit AnimatableUnknown(PassRefPtrWillBeRawPtr<CSSValue> value)
: m_value(value)
{
ASSERT(m_value);
@@ -70,7 +70,7 @@ private:
virtual AnimatableType type() const OVERRIDE { return TypeUnknown; }
virtual bool equalTo(const AnimatableValue*) const OVERRIDE;
- const RefPtr<CSSValue> m_value;
+ const RefPtrWillBePersistent<CSSValue> m_value;
};
DEFINE_ANIMATABLE_VALUE_TYPE_CASTS(AnimatableUnknown, isUnknown());
« no previous file with comments | « Source/core/animation/AnimatableNeutralTest.cpp ('k') | Source/core/animation/AnimatableUnknownTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698