Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(355)

Unified Diff: Source/core/frame/DOMTimer.cpp

Issue 847803002: Make ScriptStreamer and dependents Oilpan friendly. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Add ScriptSourceCode::isNull() comment Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/frame/DOMTimer.h ('k') | Source/core/frame/DOMTimerCoordinator.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/frame/DOMTimer.cpp
diff --git a/Source/core/frame/DOMTimer.cpp b/Source/core/frame/DOMTimer.cpp
index a1b7ea903270bce2f5e5209b3cac266706ebaca4..4296ae90107936407bafada6ad383d37d81c508f 100644
--- a/Source/core/frame/DOMTimer.cpp
+++ b/Source/core/frame/DOMTimer.cpp
@@ -65,7 +65,7 @@ double DOMTimer::visiblePageAlignmentInterval()
return 0;
}
-int DOMTimer::install(ExecutionContext* context, PassOwnPtr<ScheduledAction> action, int timeout, bool singleShot)
+int DOMTimer::install(ExecutionContext* context, PassOwnPtrWillBeRawPtr<ScheduledAction> action, int timeout, bool singleShot)
{
int timeoutID = context->timers()->installNewTimeout(context, action, timeout, singleShot);
TRACE_EVENT_INSTANT1(TRACE_DISABLED_BY_DEFAULT("devtools.timeline"), "TimerInstall", "data", InspectorTimerInstallEvent::data(context, timeoutID, timeout, singleShot));
@@ -82,7 +82,7 @@ void DOMTimer::removeByID(ExecutionContext* context, int timeoutID)
InspectorInstrumentation::didRemoveTimer(context, timeoutID);
}
-DOMTimer::DOMTimer(ExecutionContext* context, PassOwnPtr<ScheduledAction> action, int interval, bool singleShot, int timeoutID)
+DOMTimer::DOMTimer(ExecutionContext* context, PassOwnPtrWillBeRawPtr<ScheduledAction> action, int interval, bool singleShot, int timeoutID)
: SuspendableTimer(context)
, m_timeoutID(timeoutID)
, m_nestingLevel(context->timers()->timerNestingLevel() + 1)
@@ -145,7 +145,7 @@ void DOMTimer::fired()
// Unregister the timer from ExecutionContext before executing the action
// for one-shot timers.
- OwnPtr<ScheduledAction> action = m_action.release();
+ OwnPtrWillBeRawPtr<ScheduledAction> action = m_action.release();
context->timers()->removeTimeoutByID(m_timeoutID);
action->execute(context);
@@ -205,6 +205,7 @@ double DOMTimer::alignedFireTime(double fireTime) const
void DOMTimer::trace(Visitor* visitor)
{
+ visitor->trace(m_action);
SuspendableTimer::trace(visitor);
}
« no previous file with comments | « Source/core/frame/DOMTimer.h ('k') | Source/core/frame/DOMTimerCoordinator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698