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

Side by Side Diff: Source/core/frame/animation/AnimationBase.h

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 unified diff | Download patch
« no previous file with comments | « Source/core/dom/Range.cpp ('k') | Source/core/frame/animation/AnimationBase.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2007 Apple Inc. All rights reserved. 2 * Copyright (C) 2007 Apple Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 7 *
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 class Node; 43 class Node;
44 class RenderObject; 44 class RenderObject;
45 class RenderStyle; 45 class RenderStyle;
46 class TimingFunction; 46 class TimingFunction;
47 47
48 class AnimationBase : public RefCounted<AnimationBase> { 48 class AnimationBase : public RefCounted<AnimationBase> {
49 friend class CompositeAnimation; 49 friend class CompositeAnimation;
50 friend class CSSPropertyAnimation; 50 friend class CSSPropertyAnimation;
51 51
52 public: 52 public:
53 AnimationBase(const CSSAnimationData* transition, RenderObject* renderer, Co mpositeAnimation* compAnim); 53 AnimationBase(const CSSAnimationData* transition, RenderObject& renderer, Co mpositeAnimation* compAnim);
54 virtual ~AnimationBase() { } 54 virtual ~AnimationBase() { }
55 55
56 RenderObject* renderer() const { return m_object; } 56 RenderObject* renderer() const { return m_object; }
57 void clear() 57 void clear()
58 { 58 {
59 endAnimation(); 59 endAnimation();
60 m_object = 0; 60 m_object = 0;
61 m_compAnim = 0; 61 m_compAnim = 0;
62 } 62 }
63 63
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after
219 219
220 RenderObject* m_object; 220 RenderObject* m_object;
221 221
222 RefPtr<CSSAnimationData> m_animation; 222 RefPtr<CSSAnimationData> m_animation;
223 CompositeAnimation* m_compAnim; 223 CompositeAnimation* m_compAnim;
224 }; 224 };
225 225
226 } // namespace WebCore 226 } // namespace WebCore
227 227
228 #endif // AnimationBase_h 228 #endif // AnimationBase_h
OLDNEW
« no previous file with comments | « Source/core/dom/Range.cpp ('k') | Source/core/frame/animation/AnimationBase.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698