| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 Google 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 are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * 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 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 77 ASSERT(executionContext()); | 77 ASSERT(executionContext()); |
| 78 OwnPtrWillBeRawPtr<ExecutionContextData> self = m_tracker->m_executionCo
ntextDataMap.take(executionContext()); | 78 OwnPtrWillBeRawPtr<ExecutionContextData> self = m_tracker->m_executionCo
ntextDataMap.take(executionContext()); |
| 79 ASSERT_UNUSED(self, self == this); | 79 ASSERT_UNUSED(self, self == this); |
| 80 ContextLifecycleObserver::contextDestroyed(); | 80 ContextLifecycleObserver::contextDestroyed(); |
| 81 disposeCallChains(); | 81 disposeCallChains(); |
| 82 } | 82 } |
| 83 | 83 |
| 84 void unobserve() | 84 void unobserve() |
| 85 { | 85 { |
| 86 disposeCallChains(); | 86 disposeCallChains(); |
| 87 dispose(); | 87 setContext(nullptr); |
| 88 } | 88 } |
| 89 | 89 |
| 90 virtual void trace(Visitor* visitor) override | 90 virtual void trace(Visitor* visitor) override |
| 91 { | 91 { |
| 92 visitor->trace(m_tracker); | 92 visitor->trace(m_tracker); |
| 93 #if ENABLE(OILPAN) | 93 #if ENABLE(OILPAN) |
| 94 visitor->trace(m_timerCallChains); | 94 visitor->trace(m_timerCallChains); |
| 95 visitor->trace(m_animationFrameCallChains); | 95 visitor->trace(m_animationFrameCallChains); |
| 96 visitor->trace(m_eventCallChains); | 96 visitor->trace(m_eventCallChains); |
| 97 visitor->trace(m_xhrCallChains); | 97 visitor->trace(m_xhrCallChains); |
| (...skipping 327 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 425 { | 425 { |
| 426 #if ENABLE(OILPAN) | 426 #if ENABLE(OILPAN) |
| 427 visitor->trace(m_executionContextDataMap); | 427 visitor->trace(m_executionContextDataMap); |
| 428 visitor->trace(m_debuggerAgent); | 428 visitor->trace(m_debuggerAgent); |
| 429 visitor->trace(m_instrumentingAgents); | 429 visitor->trace(m_instrumentingAgents); |
| 430 #endif | 430 #endif |
| 431 InspectorDebuggerAgent::AsyncCallTrackingListener::trace(visitor); | 431 InspectorDebuggerAgent::AsyncCallTrackingListener::trace(visitor); |
| 432 } | 432 } |
| 433 | 433 |
| 434 } // namespace blink | 434 } // namespace blink |
| OLD | NEW |