Index: Source/core/frame/animation/AnimationController.h |
diff --git a/Source/core/frame/animation/AnimationController.h b/Source/core/frame/animation/AnimationController.h |
index 6f7e4c14300fa0309a866d9e9d01606e53db797b..2f5564af54d8bc1fed2b43826fae74ddd369e600 100644 |
--- a/Source/core/frame/animation/AnimationController.h |
+++ b/Source/core/frame/animation/AnimationController.h |
@@ -77,13 +77,19 @@ private: |
class AnimationUpdateBlock { |
public: |
- AnimationUpdateBlock(AnimationController* animationController) |
+ explicit AnimationUpdateBlock(AnimationController* animationController) |
: m_animationController(animationController) |
{ |
if (m_animationController) |
m_animationController->beginAnimationUpdate(); |
} |
+ explicit AnimationUpdateBlock(AnimationController& animationController) |
Inactive
2013/10/21 19:15:10
I added this constructor taking a reference for co
|
+ : m_animationController(&animationController) |
+ { |
+ m_animationController->beginAnimationUpdate(); |
+ } |
+ |
~AnimationUpdateBlock() |
{ |
if (m_animationController) |