| Index: Source/core/animation/StringKeyframe.h
|
| diff --git a/Source/core/animation/StringKeyframe.h b/Source/core/animation/StringKeyframe.h
|
| index 1b958f584e401916788c438ec34407af57de65e3..5ff64ce8e51b58d8726a309fbecff21c2d78ef56 100644
|
| --- a/Source/core/animation/StringKeyframe.h
|
| +++ b/Source/core/animation/StringKeyframe.h
|
| @@ -16,13 +16,13 @@ class StyleSheetContents;
|
|
|
| class StringKeyframe : public Keyframe {
|
| public:
|
| - static PassRefPtrWillBeRawPtr<StringKeyframe> create()
|
| + static PassRefPtr<StringKeyframe> create()
|
| {
|
| - return adoptRefWillBeNoop(new StringKeyframe);
|
| + return adoptRef(new StringKeyframe);
|
| }
|
|
|
| void setPropertyValue(CSSPropertyID, const String& value, Element*, StyleSheetContents*);
|
| - void setPropertyValue(CSSPropertyID, PassRefPtrWillBeRawPtr<CSSValue>);
|
| + void setPropertyValue(CSSPropertyID, PassRefPtr<CSSValue>);
|
| void setPropertyValue(const QualifiedName&, const String& value, Element*);
|
| CSSValue* cssPropertyValue(CSSPropertyID property) const
|
| {
|
| @@ -37,8 +37,6 @@ public:
|
|
|
| PropertyHandleSet properties() const override;
|
|
|
| - DECLARE_VIRTUAL_TRACE();
|
| -
|
| class CSSPropertySpecificKeyframe : public Keyframe::PropertySpecificKeyframe {
|
| public:
|
| CSSPropertySpecificKeyframe(double offset, PassRefPtr<TimingFunction> easing, CSSValue*, EffectModel::CompositeOperation);
|
| @@ -46,19 +44,17 @@ public:
|
| CSSValue* value() const { return m_value.get(); }
|
|
|
| virtual void populateAnimatableValue(CSSPropertyID, Element&, const ComputedStyle* baseStyle) const;
|
| - const PassRefPtrWillBeRawPtr<AnimatableValue> getAnimatableValue() const final { return m_animatableValueCache.get(); }
|
| - void setAnimatableValue(PassRefPtrWillBeRawPtr<AnimatableValue> value) { m_animatableValueCache = value; }
|
| + const PassRefPtr<AnimatableValue> getAnimatableValue() const final { return m_animatableValueCache.get(); }
|
| + void setAnimatableValue(PassRefPtr<AnimatableValue> value) { m_animatableValueCache = value; }
|
|
|
| bool isNeutral() const final { return !m_value; }
|
| - PassOwnPtrWillBeRawPtr<Keyframe::PropertySpecificKeyframe> neutralKeyframe(double offset, PassRefPtr<TimingFunction> easing) const final;
|
| + PassOwnPtr<Keyframe::PropertySpecificKeyframe> neutralKeyframe(double offset, PassRefPtr<TimingFunction> easing) const final;
|
| PassRefPtrWillBeRawPtr<Interpolation> maybeCreateInterpolation(PropertyHandle, Keyframe::PropertySpecificKeyframe& end, Element*, const ComputedStyle* baseStyle) const final;
|
|
|
| - DECLARE_VIRTUAL_TRACE();
|
| -
|
| private:
|
| CSSPropertySpecificKeyframe(double offset, PassRefPtr<TimingFunction> easing, CSSValue*);
|
|
|
| - virtual PassOwnPtrWillBeRawPtr<Keyframe::PropertySpecificKeyframe> cloneWithOffset(double offset) const;
|
| + virtual PassOwnPtr<Keyframe::PropertySpecificKeyframe> cloneWithOffset(double offset) const;
|
| bool isCSSPropertySpecificKeyframe() const override { return true; }
|
|
|
| PassRefPtrWillBeRawPtr<Interpolation> createLegacyStyleInterpolation(CSSPropertyID, Keyframe::PropertySpecificKeyframe& end, Element*, const ComputedStyle* baseStyle) const;
|
| @@ -66,8 +62,8 @@ public:
|
|
|
| void populateAnimatableValueCaches(CSSPropertyID, Keyframe::PropertySpecificKeyframe&, Element*, CSSValue& fromCSSValue, CSSValue& toCSSValue) const;
|
|
|
| - RefPtrWillBeMember<CSSValue> m_value;
|
| - mutable RefPtrWillBeMember<AnimatableValue> m_animatableValueCache;
|
| + RefPtr<CSSValue> m_value;
|
| + mutable RefPtr<AnimatableValue> m_animatableValueCache;
|
| };
|
|
|
| class SVGPropertySpecificKeyframe : public Keyframe::PropertySpecificKeyframe {
|
| @@ -76,15 +72,13 @@ public:
|
|
|
| const String& value() const { return m_value; }
|
|
|
| - PassOwnPtrWillBeRawPtr<PropertySpecificKeyframe> cloneWithOffset(double offset) const final;
|
| + PassOwnPtr<PropertySpecificKeyframe> cloneWithOffset(double offset) const final;
|
|
|
| - const PassRefPtrWillBeRawPtr<AnimatableValue> getAnimatableValue() const final { return nullptr; }
|
| + const PassRefPtr<AnimatableValue> getAnimatableValue() const final { return nullptr; }
|
|
|
| - PassOwnPtrWillBeRawPtr<PropertySpecificKeyframe> neutralKeyframe(double offset, PassRefPtr<TimingFunction> easing) const final;
|
| + PassOwnPtr<PropertySpecificKeyframe> neutralKeyframe(double offset, PassRefPtr<TimingFunction> easing) const final;
|
| PassRefPtrWillBeRawPtr<Interpolation> maybeCreateInterpolation(PropertyHandle, Keyframe::PropertySpecificKeyframe& end, Element*, const ComputedStyle* baseStyle) const final;
|
|
|
| - DECLARE_VIRTUAL_TRACE();
|
| -
|
| private:
|
| SVGPropertySpecificKeyframe(double offset, PassRefPtr<TimingFunction> easing, const String&);
|
|
|
| @@ -100,12 +94,12 @@ private:
|
|
|
| StringKeyframe(const StringKeyframe& copyFrom);
|
|
|
| - PassRefPtrWillBeRawPtr<Keyframe> clone() const override;
|
| - PassOwnPtrWillBeRawPtr<Keyframe::PropertySpecificKeyframe> createPropertySpecificKeyframe(PropertyHandle) const override;
|
| + PassRefPtr<Keyframe> clone() const override;
|
| + PassOwnPtr<Keyframe::PropertySpecificKeyframe> createPropertySpecificKeyframe(PropertyHandle) const override;
|
|
|
| bool isStringKeyframe() const override { return true; }
|
|
|
| - RefPtrWillBeMember<MutableStylePropertySet> m_propertySet;
|
| + RefPtrWillBePersistent<MutableStylePropertySet> m_propertySet;
|
| HashMap<const QualifiedName*, String> m_svgPropertyMap;
|
| };
|
|
|
|
|