diff options
Diffstat (limited to 'WebCore/page/DOMTimer.cpp')
-rw-r--r-- | WebCore/page/DOMTimer.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/WebCore/page/DOMTimer.cpp b/WebCore/page/DOMTimer.cpp index 83bcb02..8971bb7 100644 --- a/WebCore/page/DOMTimer.cpp +++ b/WebCore/page/DOMTimer.cpp @@ -119,8 +119,7 @@ void DOMTimer::fired() timerNestingLevel = m_nestingLevel; #if ENABLE(INSPECTOR) - InspectorTimelineAgent* timelineAgent = InspectorTimelineAgent::retrieve(context); - if (timelineAgent) + if (InspectorTimelineAgent* timelineAgent = InspectorTimelineAgent::retrieve(context)) timelineAgent->willFireTimer(m_timeoutId); #endif @@ -135,7 +134,7 @@ void DOMTimer::fired() // No access to member variables after this point, it can delete the timer. m_action->execute(context); #if ENABLE(INSPECTOR) - if (timelineAgent) + if (InspectorTimelineAgent* timelineAgent = InspectorTimelineAgent::retrieve(context)) timelineAgent->didFireTimer(); #endif return; @@ -149,7 +148,7 @@ void DOMTimer::fired() action->execute(context); #if ENABLE(INSPECTOR) - if (timelineAgent) + if (InspectorTimelineAgent* timelineAgent = InspectorTimelineAgent::retrieve(context)) timelineAgent->didFireTimer(); #endif delete action; |