| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2010 Apple Inc. All rights reserved. | 2 * Copyright (C) 2010 Apple Inc. All rights reserved. |
| 3 * Copyright (C) 2013 Google Inc. All rights reserved. | 3 * Copyright (C) 2013 Google Inc. All rights reserved. |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
| 7 * are met: | 7 * are met: |
| 8 * | 8 * |
| 9 * 1. Redistributions of source code must retain the above copyright | 9 * 1. Redistributions of source code must retain the above copyright |
| 10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
| (...skipping 687 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 698 m_asyncCallStackTracker.willFireAnimationFrame(document, callbackId); | 698 m_asyncCallStackTracker.willFireAnimationFrame(document, callbackId); |
| 699 return true; | 699 return true; |
| 700 } | 700 } |
| 701 | 701 |
| 702 void InspectorDebuggerAgent::didFireAnimationFrame() | 702 void InspectorDebuggerAgent::didFireAnimationFrame() |
| 703 { | 703 { |
| 704 if (m_asyncCallStackTracker.isEnabled()) | 704 if (m_asyncCallStackTracker.isEnabled()) |
| 705 m_asyncCallStackTracker.didFireAsyncCall(); | 705 m_asyncCallStackTracker.didFireAsyncCall(); |
| 706 } | 706 } |
| 707 | 707 |
| 708 void InspectorDebuggerAgent::didAddEventListener(EventTarget* eventTarget, const
AtomicString& eventType, EventListener* listener, bool useCapture) | |
| 709 { | |
| 710 if (m_asyncCallStackTracker.isEnabled()) | |
| 711 m_asyncCallStackTracker.didAddEventListener(eventTarget, eventType, list
ener, useCapture, scriptDebugServer().currentCallFramesForAsyncStack()); | |
| 712 } | |
| 713 | |
| 714 void InspectorDebuggerAgent::didRemoveEventListener(EventTarget* eventTarget, co
nst AtomicString& eventType, EventListener* listener, bool useCapture) | |
| 715 { | |
| 716 if (m_asyncCallStackTracker.isEnabled()) | |
| 717 m_asyncCallStackTracker.didRemoveEventListener(eventTarget, eventType, l
istener, useCapture); | |
| 718 } | |
| 719 | |
| 720 void InspectorDebuggerAgent::didRemoveAllEventListeners(EventTarget* eventTarget
) | |
| 721 { | |
| 722 if (m_asyncCallStackTracker.isEnabled()) | |
| 723 m_asyncCallStackTracker.didRemoveAllEventListeners(eventTarget); | |
| 724 } | |
| 725 | |
| 726 void InspectorDebuggerAgent::willHandleEvent(EventTarget* eventTarget, const Ato
micString& eventType, EventListener* listener, bool useCapture) | 708 void InspectorDebuggerAgent::willHandleEvent(EventTarget* eventTarget, const Ato
micString& eventType, EventListener* listener, bool useCapture) |
| 727 { | 709 { |
| 728 if (m_asyncCallStackTracker.isEnabled()) | 710 if (m_asyncCallStackTracker.isEnabled()) |
| 729 m_asyncCallStackTracker.willHandleEvent(eventTarget, eventType, listener
, useCapture); | 711 m_asyncCallStackTracker.willHandleEvent(eventTarget, eventType, listener
, useCapture); |
| 730 } | 712 } |
| 731 | 713 |
| 732 void InspectorDebuggerAgent::didHandleEvent() | 714 void InspectorDebuggerAgent::didHandleEvent() |
| 733 { | 715 { |
| 734 if (m_asyncCallStackTracker.isEnabled()) | 716 if (m_asyncCallStackTracker.isEnabled()) |
| 735 m_asyncCallStackTracker.didFireAsyncCall(); | 717 m_asyncCallStackTracker.didFireAsyncCall(); |
| (...skipping 537 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1273 m_scripts.clear(); | 1255 m_scripts.clear(); |
| 1274 m_breakpointIdToDebugServerBreakpointIds.clear(); | 1256 m_breakpointIdToDebugServerBreakpointIds.clear(); |
| 1275 m_asyncCallStackTracker.clear(); | 1257 m_asyncCallStackTracker.clear(); |
| 1276 m_promiseTracker.clear(); | 1258 m_promiseTracker.clear(); |
| 1277 if (m_frontend) | 1259 if (m_frontend) |
| 1278 m_frontend->globalObjectCleared(); | 1260 m_frontend->globalObjectCleared(); |
| 1279 } | 1261 } |
| 1280 | 1262 |
| 1281 } // namespace WebCore | 1263 } // namespace WebCore |
| 1282 | 1264 |
| OLD | NEW |