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

Unified Diff: Source/core/animation/ElementAnimation.cpp

Issue 171333003: Pass implementation object to supplemental classes by reference (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase Created 6 years, 10 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.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());

Powered by Google App Engine
This is Rietveld 408576698