Index: Source/core/animation/ElementAnimation.cpp |
diff --git a/Source/core/animation/ElementAnimation.cpp b/Source/core/animation/ElementAnimation.cpp |
index 24c7b7afcb89de41c1b8da265ea2f4a271e87cae..ebf4be354bbcc50afee2d5aa9d2ac5f0e9a27a4d 100644 |
--- a/Source/core/animation/ElementAnimation.cpp |
+++ b/Source/core/animation/ElementAnimation.cpp |
@@ -37,36 +37,36 @@ |
namespace WebCore { |
-Animation* ElementAnimation::animate(Element* element, Vector<Dictionary> keyframeDictionaryVector, Dictionary timingInput) |
+Animation* ElementAnimation::animate(Element& element, Vector<Dictionary> keyframeDictionaryVector, Dictionary timingInput) |
{ |
ASSERT(RuntimeEnabledFeatures::webAnimationsAPIEnabled()); |
- RefPtr<Animation> animation = Animation::create(element, keyframeDictionaryVector, timingInput); |
- DocumentTimeline* timeline = element->document().timeline(); |
+ RefPtr<Animation> animation = Animation::create(&element, keyframeDictionaryVector, timingInput); |
+ DocumentTimeline* timeline = element.document().timeline(); |
ASSERT(timeline); |
timeline->play(animation.get()); |
return animation.get(); |
} |
-Animation* ElementAnimation::animate(Element* element, Vector<Dictionary> keyframeDictionaryVector, double timingInput) |
+Animation* ElementAnimation::animate(Element& element, Vector<Dictionary> keyframeDictionaryVector, double timingInput) |
{ |
ASSERT(RuntimeEnabledFeatures::webAnimationsAPIEnabled()); |
- RefPtr<Animation> animation = Animation::create(element, keyframeDictionaryVector, timingInput); |
- DocumentTimeline* timeline = element->document().timeline(); |
+ RefPtr<Animation> animation = Animation::create(&element, keyframeDictionaryVector, timingInput); |
+ DocumentTimeline* timeline = element.document().timeline(); |
ASSERT(timeline); |
timeline->play(animation.get()); |
return animation.get(); |
} |
-Animation* ElementAnimation::animate(Element* element, Vector<Dictionary> keyframeDictionaryVector) |
+Animation* ElementAnimation::animate(Element& element, Vector<Dictionary> keyframeDictionaryVector) |
{ |
ASSERT(RuntimeEnabledFeatures::webAnimationsAPIEnabled()); |
- RefPtr<Animation> animation = Animation::create(element, keyframeDictionaryVector); |
- DocumentTimeline* timeline = element->document().timeline(); |
+ RefPtr<Animation> animation = Animation::create(&element, keyframeDictionaryVector); |
+ DocumentTimeline* timeline = element.document().timeline(); |
ASSERT(timeline); |
timeline->play(animation.get()); |