Index: Source/core/dom/Element.cpp |
diff --git a/Source/core/dom/Element.cpp b/Source/core/dom/Element.cpp |
index 6be8386d7e8af3438c153481e9deae2e3a438536..509eabf7573f7b248f5d8dfc209544a83f2ec587 100644 |
--- a/Source/core/dom/Element.cpp |
+++ b/Source/core/dom/Element.cpp |
@@ -369,12 +369,12 @@ ActiveAnimations* Element::activeAnimations() const |
return 0; |
} |
-ActiveAnimations* Element::ensureActiveAnimations() |
+ActiveAnimations& Element::ensureActiveAnimations() |
{ |
ElementRareData& rareData = ensureElementRareData(); |
if (!rareData.activeAnimations()) |
rareData.setActiveAnimations(adoptPtr(new ActiveAnimations())); |
- return rareData.activeAnimations(); |
+ return *rareData.activeAnimations(); |
} |
bool Element::hasActiveAnimations() const |