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

Side by Side Diff: Source/core/frame/animation/AnimationController.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
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 46
47 class AnimationController { 47 class AnimationController {
48 public: 48 public:
49 AnimationController(Frame*); 49 AnimationController(Frame*);
50 ~AnimationController(); 50 ~AnimationController();
51 51
52 void cancelAnimations(RenderObject*); 52 void cancelAnimations(RenderObject*);
53 PassRefPtr<RenderStyle> updateAnimations(RenderObject*, RenderStyle* newStyl e); 53 PassRefPtr<RenderStyle> updateAnimations(RenderObject&, RenderStyle& newStyl e);
54 PassRefPtr<RenderStyle> getAnimatedStyleForRenderer(RenderObject*); 54 PassRefPtr<RenderStyle> getAnimatedStyleForRenderer(RenderObject*);
55 55
56 // This is called when an accelerated animation or transition has actually s tarted to animate. 56 // This is called when an accelerated animation or transition has actually s tarted to animate.
57 void notifyAnimationStarted(RenderObject*, double startTime); 57 void notifyAnimationStarted(RenderObject*, double startTime);
58 58
59 void pauseAnimationsForTesting(double t); 59 void pauseAnimationsForTesting(double t);
60 unsigned numberOfActiveAnimations(Document*) const; // To be used only for t esting 60 unsigned numberOfActiveAnimations(Document*) const; // To be used only for t esting
61 61
62 bool isRunningAnimationOnRenderer(RenderObject*, CSSPropertyID, bool isRunni ngNow = true) const; 62 bool isRunningAnimationOnRenderer(RenderObject*, CSSPropertyID, bool isRunni ngNow = true) const;
63 bool isRunningAcceleratableAnimationOnRenderer(RenderObject*) const; 63 bool isRunningAcceleratableAnimationOnRenderer(RenderObject*) const;
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 if (m_animationController) 95 if (m_animationController)
96 m_animationController->endAnimationUpdate(); 96 m_animationController->endAnimationUpdate();
97 } 97 }
98 98
99 AnimationController* m_animationController; 99 AnimationController* m_animationController;
100 }; 100 };
101 101
102 } // namespace WebCore 102 } // namespace WebCore
103 103
104 #endif // AnimationController_h 104 #endif // AnimationController_h
OLDNEW
« no previous file with comments | « Source/core/frame/animation/AnimationBase.cpp ('k') | Source/core/frame/animation/AnimationController.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698