| Index: Source/WebCore/inspector/InspectorInstrumentation.cpp
|
| ===================================================================
|
| --- Source/WebCore/inspector/InspectorInstrumentation.cpp (revision 108467)
|
| +++ Source/WebCore/inspector/InspectorInstrumentation.cpp (working copy)
|
| @@ -71,9 +71,6 @@
|
|
|
| namespace WebCore {
|
|
|
| -static const char* const listenerEventCategoryType = "listener";
|
| -static const char* const instrumentationEventCategoryType = "instrumentation";
|
| -
|
| static const char* const setTimerEventName = "setTimer";
|
| static const char* const clearTimerEventName = "clearTimer";
|
| static const char* const timerFiredEventName = "timerFired";
|
| @@ -241,14 +238,14 @@
|
|
|
| void InspectorInstrumentation::didInstallTimerImpl(InstrumentingAgents* instrumentingAgents, int timerId, int timeout, bool singleShot)
|
| {
|
| - pauseOnNativeEventIfNeeded(instrumentingAgents, instrumentationEventCategoryType, setTimerEventName, true);
|
| + pauseOnNativeEventIfNeeded(instrumentingAgents, false, setTimerEventName, true);
|
| if (InspectorTimelineAgent* timelineAgent = instrumentingAgents->inspectorTimelineAgent())
|
| timelineAgent->didInstallTimer(timerId, timeout, singleShot);
|
| }
|
|
|
| void InspectorInstrumentation::didRemoveTimerImpl(InstrumentingAgents* instrumentingAgents, int timerId)
|
| {
|
| - pauseOnNativeEventIfNeeded(instrumentingAgents, instrumentationEventCategoryType, clearTimerEventName, true);
|
| + pauseOnNativeEventIfNeeded(instrumentingAgents, false, clearTimerEventName, true);
|
| if (InspectorTimelineAgent* timelineAgent = instrumentingAgents->inspectorTimelineAgent())
|
| timelineAgent->didRemoveTimer(timerId);
|
| }
|
| @@ -288,7 +285,7 @@
|
|
|
| InspectorInstrumentationCookie InspectorInstrumentation::willDispatchEventImpl(InstrumentingAgents* instrumentingAgents, const Event& event, DOMWindow* window, Node* node, const Vector<EventContext>& ancestors)
|
| {
|
| - pauseOnNativeEventIfNeeded(instrumentingAgents, listenerEventCategoryType, event.type(), false);
|
| + pauseOnNativeEventIfNeeded(instrumentingAgents, true, event.type(), false);
|
|
|
| int timelineAgentId = 0;
|
| InspectorTimelineAgent* timelineAgent = instrumentingAgents->inspectorTimelineAgent();
|
| @@ -346,7 +343,7 @@
|
|
|
| InspectorInstrumentationCookie InspectorInstrumentation::willFireTimerImpl(InstrumentingAgents* instrumentingAgents, int timerId)
|
| {
|
| - pauseOnNativeEventIfNeeded(instrumentingAgents, instrumentationEventCategoryType, timerFiredEventName, false);
|
| + pauseOnNativeEventIfNeeded(instrumentingAgents, false, timerFiredEventName, false);
|
|
|
| int timelineAgentId = 0;
|
| if (InspectorTimelineAgent* timelineAgent = instrumentingAgents->inspectorTimelineAgent()) {
|
| @@ -967,11 +964,11 @@
|
| return page && page->inspectorController()->hasFrontend();
|
| }
|
|
|
| -void InspectorInstrumentation::pauseOnNativeEventIfNeeded(InstrumentingAgents* instrumentingAgents, const String& categoryType, const String& eventName, bool synchronous)
|
| +void InspectorInstrumentation::pauseOnNativeEventIfNeeded(InstrumentingAgents* instrumentingAgents, bool isDOMEvent, const String& eventName, bool synchronous)
|
| {
|
| #if ENABLE(JAVASCRIPT_DEBUGGER)
|
| if (InspectorDOMDebuggerAgent* domDebuggerAgent = instrumentingAgents->inspectorDOMDebuggerAgent())
|
| - domDebuggerAgent->pauseOnNativeEventIfNeeded(categoryType, eventName, synchronous);
|
| + domDebuggerAgent->pauseOnNativeEventIfNeeded(isDOMEvent, eventName, synchronous);
|
| #endif
|
| }
|
|
|
| @@ -1040,3 +1037,4 @@
|
| } // namespace WebCore
|
|
|
| #endif // !ENABLE(INSPECTOR)
|
| +
|
|
|