| Index: Source/core/animation/StringKeyframe.cpp
|
| diff --git a/Source/core/animation/StringKeyframe.cpp b/Source/core/animation/StringKeyframe.cpp
|
| index db56d6314be26151a03088ec6836f78d9454bd74..5aabfe15ff72ee49123a934e84d1c4909cd4feaf 100644
|
| --- a/Source/core/animation/StringKeyframe.cpp
|
| +++ b/Source/core/animation/StringKeyframe.cpp
|
| @@ -60,7 +60,7 @@ void StringKeyframe::setPropertyValue(CSSPropertyID property, const String& valu
|
| m_propertySet->setProperty(property, value, false, styleSheetContents);
|
| }
|
|
|
| -void StringKeyframe::setPropertyValue(CSSPropertyID property, PassRefPtrWillBeRawPtr<CSSValue> value)
|
| +void StringKeyframe::setPropertyValue(CSSPropertyID property, PassRefPtr<CSSValue> value)
|
| {
|
| ASSERT(property != CSSPropertyInvalid);
|
| ASSERT(CSSAnimations::isAnimatableProperty(property));
|
| @@ -87,24 +87,18 @@ PropertyHandleSet StringKeyframe::properties() const
|
| return properties;
|
| }
|
|
|
| -PassRefPtrWillBeRawPtr<Keyframe> StringKeyframe::clone() const
|
| +PassRefPtr<Keyframe> StringKeyframe::clone() const
|
| {
|
| - return adoptRefWillBeNoop(new StringKeyframe(*this));
|
| + return adoptRef(new StringKeyframe(*this));
|
| }
|
|
|
| -PassOwnPtrWillBeRawPtr<Keyframe::PropertySpecificKeyframe> StringKeyframe::createPropertySpecificKeyframe(PropertyHandle property) const
|
| +PassOwnPtr<Keyframe::PropertySpecificKeyframe> StringKeyframe::createPropertySpecificKeyframe(PropertyHandle property) const
|
| {
|
| if (property.isCSSProperty())
|
| - return adoptPtrWillBeNoop(new CSSPropertySpecificKeyframe(offset(), &easing(), cssPropertyValue(property.cssProperty()), composite()));
|
| + return adoptPtr(new CSSPropertySpecificKeyframe(offset(), &easing(), cssPropertyValue(property.cssProperty()), composite()));
|
|
|
| ASSERT(property.isSVGAttribute());
|
| - return adoptPtrWillBeNoop(new SVGPropertySpecificKeyframe(offset(), &easing(), svgPropertyValue(*property.svgAttribute()), composite()));
|
| -}
|
| -
|
| -DEFINE_TRACE(StringKeyframe)
|
| -{
|
| - visitor->trace(m_propertySet);
|
| - Keyframe::trace(visitor);
|
| + return adoptPtr(new SVGPropertySpecificKeyframe(offset(), &easing(), svgPropertyValue(*property.svgAttribute()), composite()));
|
| }
|
|
|
| StringKeyframe::CSSPropertySpecificKeyframe::CSSPropertySpecificKeyframe(double offset, PassRefPtr<TimingFunction> easing, CSSValue* value, EffectModel::CompositeOperation op)
|
| @@ -489,23 +483,16 @@ PassRefPtrWillBeRawPtr<Interpolation> StringKeyframe::CSSPropertySpecificKeyfram
|
|
|
| }
|
|
|
| -PassOwnPtrWillBeRawPtr<Keyframe::PropertySpecificKeyframe> StringKeyframe::CSSPropertySpecificKeyframe::neutralKeyframe(double offset, PassRefPtr<TimingFunction> easing) const
|
| +PassOwnPtr<Keyframe::PropertySpecificKeyframe> StringKeyframe::CSSPropertySpecificKeyframe::neutralKeyframe(double offset, PassRefPtr<TimingFunction> easing) const
|
| {
|
| - return adoptPtrWillBeNoop(new CSSPropertySpecificKeyframe(offset, easing, static_cast<CSSValue*>(0), EffectModel::CompositeAdd));
|
| + return adoptPtr(new CSSPropertySpecificKeyframe(offset, easing, static_cast<CSSValue*>(0), EffectModel::CompositeAdd));
|
| }
|
|
|
| -PassOwnPtrWillBeRawPtr<Keyframe::PropertySpecificKeyframe> StringKeyframe::CSSPropertySpecificKeyframe::cloneWithOffset(double offset) const
|
| +PassOwnPtr<Keyframe::PropertySpecificKeyframe> StringKeyframe::CSSPropertySpecificKeyframe::cloneWithOffset(double offset) const
|
| {
|
| Keyframe::PropertySpecificKeyframe* theClone = new CSSPropertySpecificKeyframe(offset, m_easing, m_value.get());
|
| toCSSPropertySpecificKeyframe(theClone)->m_animatableValueCache = m_animatableValueCache;
|
| - return adoptPtrWillBeNoop(theClone);
|
| -}
|
| -
|
| -DEFINE_TRACE(StringKeyframe::CSSPropertySpecificKeyframe)
|
| -{
|
| - visitor->trace(m_value);
|
| - visitor->trace(m_animatableValueCache);
|
| - Keyframe::PropertySpecificKeyframe::trace(visitor);
|
| + return adoptPtr(theClone);
|
| }
|
|
|
| SVGPropertySpecificKeyframe::SVGPropertySpecificKeyframe(double offset, PassRefPtr<TimingFunction> easing, const String& value, EffectModel::CompositeOperation op)
|
| @@ -521,19 +508,14 @@ SVGPropertySpecificKeyframe::SVGPropertySpecificKeyframe(double offset, PassRefP
|
| ASSERT(!isNull(m_offset));
|
| }
|
|
|
| -DEFINE_TRACE(StringKeyframe::SVGPropertySpecificKeyframe)
|
| -{
|
| - Keyframe::PropertySpecificKeyframe::trace(visitor);
|
| -}
|
| -
|
| -PassOwnPtrWillBeRawPtr<Keyframe::PropertySpecificKeyframe> SVGPropertySpecificKeyframe::cloneWithOffset(double offset) const
|
| +PassOwnPtr<Keyframe::PropertySpecificKeyframe> SVGPropertySpecificKeyframe::cloneWithOffset(double offset) const
|
| {
|
| - return adoptPtrWillBeNoop(new SVGPropertySpecificKeyframe(offset, m_easing, m_value));
|
| + return adoptPtr(new SVGPropertySpecificKeyframe(offset, m_easing, m_value));
|
| }
|
|
|
| -PassOwnPtrWillBeRawPtr<Keyframe::PropertySpecificKeyframe> SVGPropertySpecificKeyframe::neutralKeyframe(double offset, PassRefPtr<TimingFunction> easing) const
|
| +PassOwnPtr<Keyframe::PropertySpecificKeyframe> SVGPropertySpecificKeyframe::neutralKeyframe(double offset, PassRefPtr<TimingFunction> easing) const
|
| {
|
| - return adoptPtrWillBeNoop(new SVGPropertySpecificKeyframe(offset, easing, "", EffectModel::CompositeAdd));
|
| + return adoptPtr(new SVGPropertySpecificKeyframe(offset, easing, "", EffectModel::CompositeAdd));
|
| }
|
|
|
| namespace {
|
|
|