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

Unified Diff: Source/core/frame/animation/AnimationController.h

Issue 33483002: Have Frame::animation() return a reference (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 2 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
« no previous file with comments | « Source/core/frame/FrameView.cpp ('k') | Source/core/rendering/CompositedLayerMapping.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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)
« no previous file with comments | « Source/core/frame/FrameView.cpp ('k') | Source/core/rendering/CompositedLayerMapping.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698