Animations in an AnimationList are never null
authorandersca@apple.com <andersca@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 5 Sep 2013 15:15:59 +0000 (15:15 +0000)
committerandersca@apple.com <andersca@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 5 Sep 2013 15:15:59 +0000 (15:15 +0000)
commit8101bdc479f0f5b2bcdd8a11ec38fde531ecac1f
tree2f9737dbdba57dac4fe43cf1df525c10f7668a2f
parent818ce9e9782b331536eabbeb0fec2e39fd2f7cec
Animations in an AnimationList are never null
https://bugs.webkit.org/show_bug.cgi?id=120720

Reviewed by Andreas Kling.

Change AnimationList::operator[] to return an Animation& and fix up related code to also take references.

* css/CSSComputedStyleDeclaration.cpp:
* css/DeprecatedStyleBuilder.cpp:
* page/animation/CompositeAnimation.cpp:
* page/animation/KeyframeAnimation.cpp:
* platform/animation/Animation.h:
* platform/animation/AnimationList.cpp:
* platform/animation/AnimationList.h:
* rendering/RenderLayerBacking.cpp:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@155119 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebCore/ChangeLog
Source/WebCore/css/CSSComputedStyleDeclaration.cpp
Source/WebCore/css/DeprecatedStyleBuilder.cpp
Source/WebCore/page/animation/CompositeAnimation.cpp
Source/WebCore/page/animation/KeyframeAnimation.cpp
Source/WebCore/platform/animation/Animation.h
Source/WebCore/platform/animation/AnimationList.cpp
Source/WebCore/platform/animation/AnimationList.h
Source/WebCore/platform/graphics/GraphicsLayerAnimation.cpp
Source/WebCore/rendering/RenderLayerBacking.cpp
Source/WebCore/rendering/style/RenderStyle.cpp