OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "config.h" | 5 #include "config.h" |
6 | 6 |
7 #include "core/inspector/InspectorAnimationAgent.h" | 7 #include "core/inspector/InspectorAnimationAgent.h" |
8 | 8 |
9 #include "core/animation/Animation.h" | 9 #include "core/animation/Animation.h" |
10 #include "core/animation/AnimationEffect.h" | 10 #include "core/animation/AnimationEffect.h" |
(...skipping 18 matching lines...) Expand all Loading... |
29 } | 29 } |
30 | 30 |
31 void InspectorAnimationAgent::setFrontend(InspectorFrontend* frontend) | 31 void InspectorAnimationAgent::setFrontend(InspectorFrontend* frontend) |
32 { | 32 { |
33 m_frontend = frontend->animation(); | 33 m_frontend = frontend->animation(); |
34 } | 34 } |
35 | 35 |
36 void InspectorAnimationAgent::clearFrontend() | 36 void InspectorAnimationAgent::clearFrontend() |
37 { | 37 { |
38 m_frontend = nullptr; | 38 m_frontend = nullptr; |
| 39 reset(); |
39 } | 40 } |
40 | 41 |
41 void InspectorAnimationAgent::reset() | 42 void InspectorAnimationAgent::reset() |
42 { | 43 { |
43 m_idToAnimationPlayer.clear(); | 44 m_idToAnimationPlayer.clear(); |
44 } | 45 } |
45 | 46 |
46 static PassRefPtr<TypeBuilder::Animation::AnimationNode> buildObjectForAnimation
Node(AnimationNode* animationNode) | 47 static PassRefPtr<TypeBuilder::Animation::AnimationNode> buildObjectForAnimation
Node(AnimationNode* animationNode) |
47 { | 48 { |
48 RefPtr<TypeBuilder::Animation::AnimationNode> animationObject = TypeBuilder:
:Animation::AnimationNode::create() | 49 RefPtr<TypeBuilder::Animation::AnimationNode> animationObject = TypeBuilder:
:Animation::AnimationNode::create() |
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
219 void InspectorAnimationAgent::trace(Visitor* visitor) | 220 void InspectorAnimationAgent::trace(Visitor* visitor) |
220 { | 221 { |
221 #if ENABLE(OILPAN) | 222 #if ENABLE(OILPAN) |
222 visitor->trace(m_idToAnimationPlayer); | 223 visitor->trace(m_idToAnimationPlayer); |
223 visitor->trace(m_domAgent); | 224 visitor->trace(m_domAgent); |
224 #endif | 225 #endif |
225 InspectorBaseAgent::trace(visitor); | 226 InspectorBaseAgent::trace(visitor); |
226 } | 227 } |
227 | 228 |
228 } | 229 } |
OLD | NEW |