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

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

Issue 1120003002: [Oilpan] Migrate most classes under core/animations to Oilpan heap. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Resize expect size of Persistent Created 5 years, 7 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/StringKeyframe.h
diff --git a/Source/core/animation/StringKeyframe.h b/Source/core/animation/StringKeyframe.h
index 839fe75da8166b60e590fee3985754a2b18195b9..376f2a7441e89bff8c4522c4948f58dacb21a294 100644
--- a/Source/core/animation/StringKeyframe.h
+++ b/Source/core/animation/StringKeyframe.h
@@ -16,9 +16,9 @@ class StyleSheetContents;
class StringKeyframe : public Keyframe {
public:
- static PassRefPtrWillBeRawPtr<StringKeyframe> create()
+ static StringKeyframe* create()
{
- return adoptRefWillBeNoop(new StringKeyframe);
+ return new StringKeyframe;
}
void setPropertyValue(CSSPropertyID, const String& value, Element*, StyleSheetContents*);
@@ -46,26 +46,26 @@ public:
CSSValue* value() const { return m_value.get(); }
virtual void populateAnimatableValue(CSSPropertyID, Element&, const ComputedStyle* baseStyle) const;
- virtual const PassRefPtrWillBeRawPtr<AnimatableValue> getAnimatableValue() const override final { return m_animatableValueCache.get(); }
- void setAnimatableValue(PassRefPtrWillBeRawPtr<AnimatableValue> value) { m_animatableValueCache = value; }
+ virtual const AnimatableValue* getAnimatableValue() const override final { return m_animatableValueCache.get(); }
+ void setAnimatableValue(AnimatableValue* value) { m_animatableValueCache = value; }
- virtual PassOwnPtrWillBeRawPtr<Keyframe::PropertySpecificKeyframe> neutralKeyframe(double offset, PassRefPtr<TimingFunction> easing) const override final;
- virtual PassRefPtrWillBeRawPtr<Interpolation> maybeCreateInterpolation(PropertyHandle, Keyframe::PropertySpecificKeyframe& end, Element*, const ComputedStyle* baseStyle) const override final;
+ virtual Keyframe::PropertySpecificKeyframe* neutralKeyframe(double offset, PassRefPtr<TimingFunction> easing) const override final;
+ virtual Interpolation* maybeCreateInterpolation(PropertyHandle, Keyframe::PropertySpecificKeyframe& end, Element*, const ComputedStyle* baseStyle) const override final;
DECLARE_VIRTUAL_TRACE();
private:
CSSPropertySpecificKeyframe(double offset, PassRefPtr<TimingFunction> easing, CSSValue*);
- virtual PassOwnPtrWillBeRawPtr<Keyframe::PropertySpecificKeyframe> cloneWithOffset(double offset) const;
+ virtual Keyframe::PropertySpecificKeyframe* cloneWithOffset(double offset) const;
virtual bool isCSSPropertySpecificKeyframe() const override { return true; }
- static bool createInterpolationsFromCSSValues(CSSPropertyID, CSSValue* fromCSSValue, CSSValue* toCSSValue, Element*, OwnPtrWillBeRawPtr<WillBeHeapVector<RefPtrWillBeMember<Interpolation>>>& interpolations);
+ static bool createInterpolationsFromCSSValues(CSSPropertyID, CSSValue* fromCSSValue, CSSValue* toCSSValue, Element*, HeapVector<Member<Interpolation>>* interpolations);
void populateAnimatableValueCaches(CSSPropertyID, Keyframe::PropertySpecificKeyframe&, Element*, CSSValue& fromCSSValue, CSSValue& toCSSValue) const;
RefPtrWillBeMember<CSSValue> m_value;
- mutable RefPtrWillBeMember<AnimatableValue> m_animatableValueCache;
+ mutable Member<AnimatableValue> m_animatableValueCache;
};
class SVGPropertySpecificKeyframe : public Keyframe::PropertySpecificKeyframe {
@@ -74,12 +74,12 @@ public:
const String& value() const { return m_value; }
- virtual PassOwnPtrWillBeRawPtr<PropertySpecificKeyframe> cloneWithOffset(double offset) const override final;
+ virtual PropertySpecificKeyframe* cloneWithOffset(double offset) const override final;
- virtual const PassRefPtrWillBeRawPtr<AnimatableValue> getAnimatableValue() const override final { return nullptr; }
+ virtual const AnimatableValue* getAnimatableValue() const override final { return nullptr; }
- virtual PassOwnPtrWillBeRawPtr<PropertySpecificKeyframe> neutralKeyframe(double offset, PassRefPtr<TimingFunction> easing) const override final;
- virtual PassRefPtrWillBeRawPtr<Interpolation> maybeCreateInterpolation(PropertyHandle, Keyframe::PropertySpecificKeyframe& end, Element*, const ComputedStyle* baseStyle) const override final;
+ virtual PropertySpecificKeyframe* neutralKeyframe(double offset, PassRefPtr<TimingFunction> easing) const override final;
+ virtual Interpolation* maybeCreateInterpolation(PropertyHandle, Keyframe::PropertySpecificKeyframe& end, Element*, const ComputedStyle* baseStyle) const override final;
DECLARE_VIRTUAL_TRACE();
@@ -98,8 +98,8 @@ private:
StringKeyframe(const StringKeyframe& copyFrom);
- virtual PassRefPtrWillBeRawPtr<Keyframe> clone() const override;
- virtual PassOwnPtrWillBeRawPtr<Keyframe::PropertySpecificKeyframe> createPropertySpecificKeyframe(PropertyHandle) const override;
+ virtual Keyframe* clone() const override;
+ virtual Keyframe::PropertySpecificKeyframe* createPropertySpecificKeyframe(PropertyHandle) const override;
virtual bool isStringKeyframe() const override { return true; }

Powered by Google App Engine
This is Rietveld 408576698