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

Unified Diff: Source/core/frame/animation/AnimationBase.cpp

Issue 57643004: Pass RenderStyle / RenderObject by reference in more places (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase on master Created 7 years, 1 month 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/animation/AnimationBase.h ('k') | Source/core/frame/animation/AnimationController.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/frame/animation/AnimationBase.cpp
diff --git a/Source/core/frame/animation/AnimationBase.cpp b/Source/core/frame/animation/AnimationBase.cpp
index 20af3310a8f7802b3ef7169ff9fcfa26e09d2456..2377a11a886c91b52cc67558aa378f7739343f3f 100644
--- a/Source/core/frame/animation/AnimationBase.cpp
+++ b/Source/core/frame/animation/AnimationBase.cpp
@@ -40,7 +40,7 @@ using namespace std;
namespace WebCore {
-AnimationBase::AnimationBase(const CSSAnimationData* transition, RenderObject* renderer, CompositeAnimation* compAnim)
+AnimationBase::AnimationBase(const CSSAnimationData* transition, RenderObject& renderer, CompositeAnimation* compAnim)
: m_animState(AnimationStateNew)
, m_isAccelerated(false)
, m_transformFunctionListValid(false)
@@ -50,7 +50,7 @@ AnimationBase::AnimationBase(const CSSAnimationData* transition, RenderObject* r
, m_requestedStartTime(0)
, m_totalDuration(-1)
, m_nextIterationDuration(-1)
- , m_object(renderer)
+ , m_object(&renderer)
, m_animation(const_cast<CSSAnimationData*>(transition))
, m_compAnim(compAnim)
{
« no previous file with comments | « Source/core/frame/animation/AnimationBase.h ('k') | Source/core/frame/animation/AnimationController.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698