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

Unified Diff: Source/core/animation/ElementAnimation.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: Build fix Created 5 years, 8 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/ElementAnimation.h
diff --git a/Source/core/animation/ElementAnimation.h b/Source/core/animation/ElementAnimation.h
index eb3a90482b5e37f708758a9d47bc4ac99c1bd677..99882f28ed15f55f07b080b9b9c94e75b0ea8b9c 100644
--- a/Source/core/animation/ElementAnimation.h
+++ b/Source/core/animation/ElementAnimation.h
@@ -50,7 +50,7 @@ class ElementAnimation {
public:
static AnimationPlayer* animate(Element& element, const AnimationEffectOrDictionarySequence& effectInput, double duration, ExceptionState& exceptionState)
{
- RefPtrWillBeRawPtr<AnimationEffect> effect = EffectInput::convert(&element, effectInput, exceptionState);
+ AnimationEffect* effect = EffectInput::convert(&element, effectInput, exceptionState);
if (exceptionState.hadException())
return 0;
return animateInternal(element, effect, TimingInput::convert(duration));
@@ -58,7 +58,7 @@ public:
static AnimationPlayer* animate(Element& element, const AnimationEffectOrDictionarySequence& effectInput, const AnimationTimingProperties& timingInput, ExceptionState& exceptionState)
{
- RefPtrWillBeRawPtr<AnimationEffect> effect = EffectInput::convert(&element, effectInput, exceptionState);
+ AnimationEffect* effect = EffectInput::convert(&element, effectInput, exceptionState);
if (exceptionState.hadException())
return 0;
return animateInternal(element, effect, TimingInput::convert(timingInput));
@@ -66,7 +66,7 @@ public:
static AnimationPlayer* animate(Element& element, const AnimationEffectOrDictionarySequence& effectInput, ExceptionState& exceptionState)
{
- RefPtrWillBeRawPtr<AnimationEffect> effect = EffectInput::convert(&element, effectInput, exceptionState);
+ AnimationEffect* effect = EffectInput::convert(&element, effectInput, exceptionState);
if (exceptionState.hadException())
return 0;
return animateInternal(element, effect, Timing());
@@ -88,10 +88,10 @@ public:
}
private:
- static AnimationPlayer* animateInternal(Element& element, PassRefPtrWillBeRawPtr<AnimationEffect> effect, const Timing& timing)
+ static AnimationPlayer* animateInternal(Element& element, AnimationEffect* effect, const Timing& timing)
{
- RefPtrWillBeRawPtr<Animation> animation = Animation::create(&element, effect, timing);
- return element.document().timeline().play(animation.get());
+ Animation* animation = Animation::create(&element, effect, timing);
+ return element.document().timeline().play(animation);
}
};

Powered by Google App Engine
This is Rietveld 408576698