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

Side by Side Diff: Source/core/inspector/InspectorAnimationAgent.cpp

Issue 690603003: Reset animation player map on disconnecting Inspector frontend. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 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 | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698