| 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 686 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 697 m_asyncCallStackTracker.willFireAnimationFrame(document, callbackId); | 697 m_asyncCallStackTracker.willFireAnimationFrame(document, callbackId); |
| 698 return true; | 698 return true; |
| 699 } | 699 } |
| 700 | 700 |
| 701 void InspectorDebuggerAgent::didFireAnimationFrame() | 701 void InspectorDebuggerAgent::didFireAnimationFrame() |
| 702 { | 702 { |
| 703 if (m_asyncCallStackTracker.isEnabled()) | 703 if (m_asyncCallStackTracker.isEnabled()) |
| 704 m_asyncCallStackTracker.didFireAsyncCall(); | 704 m_asyncCallStackTracker.didFireAsyncCall(); |
| 705 } | 705 } |
| 706 | 706 |
| 707 void InspectorDebuggerAgent::didAddEventListener(EventTarget* eventTarget, const
AtomicString& eventType, EventListener* listener, bool useCapture) | |
| 708 { | |
| 709 if (m_asyncCallStackTracker.isEnabled()) | |
| 710 m_asyncCallStackTracker.didAddEventListener(eventTarget, eventType, list
ener, useCapture, scriptDebugServer().currentCallFramesForAsyncStack()); | |
| 711 } | |
| 712 | |
| 713 void InspectorDebuggerAgent::didRemoveEventListener(EventTarget* eventTarget, co
nst AtomicString& eventType, EventListener* listener, bool useCapture) | |
| 714 { | |
| 715 if (m_asyncCallStackTracker.isEnabled()) | |
| 716 m_asyncCallStackTracker.didRemoveEventListener(eventTarget, eventType, l
istener, useCapture); | |
| 717 } | |
| 718 | |
| 719 void InspectorDebuggerAgent::didRemoveAllEventListeners(EventTarget* eventTarget
) | |
| 720 { | |
| 721 if (m_asyncCallStackTracker.isEnabled()) | |
| 722 m_asyncCallStackTracker.didRemoveAllEventListeners(eventTarget); | |
| 723 } | |
| 724 | |
| 725 void InspectorDebuggerAgent::willHandleEvent(EventTarget* eventTarget, const Ato
micString& eventType, EventListener* listener, bool useCapture) | 707 void InspectorDebuggerAgent::willHandleEvent(EventTarget* eventTarget, const Ato
micString& eventType, EventListener* listener, bool useCapture) |
| 726 { | 708 { |
| 727 if (m_asyncCallStackTracker.isEnabled()) | 709 if (m_asyncCallStackTracker.isEnabled()) |
| 728 m_asyncCallStackTracker.willHandleEvent(eventTarget, eventType, listener
, useCapture); | 710 m_asyncCallStackTracker.willHandleEvent(eventTarget, eventType, listener
, useCapture); |
| 729 } | 711 } |
| 730 | 712 |
| 731 void InspectorDebuggerAgent::didHandleEvent() | 713 void InspectorDebuggerAgent::didHandleEvent() |
| 732 { | 714 { |
| 733 if (m_asyncCallStackTracker.isEnabled()) | 715 if (m_asyncCallStackTracker.isEnabled()) |
| 734 m_asyncCallStackTracker.didFireAsyncCall(); | 716 m_asyncCallStackTracker.didFireAsyncCall(); |
| (...skipping 506 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1241 { | 1223 { |
| 1242 m_scripts.clear(); | 1224 m_scripts.clear(); |
| 1243 m_breakpointIdToDebugServerBreakpointIds.clear(); | 1225 m_breakpointIdToDebugServerBreakpointIds.clear(); |
| 1244 m_asyncCallStackTracker.clear(); | 1226 m_asyncCallStackTracker.clear(); |
| 1245 if (m_frontend) | 1227 if (m_frontend) |
| 1246 m_frontend->globalObjectCleared(); | 1228 m_frontend->globalObjectCleared(); |
| 1247 } | 1229 } |
| 1248 | 1230 |
| 1249 } // namespace WebCore | 1231 } // namespace WebCore |
| 1250 | 1232 |
| OLD | NEW |