Index: Source/core/frame/DOMWindowTimers.cpp |
diff --git a/Source/core/frame/DOMWindowTimers.cpp b/Source/core/frame/DOMWindowTimers.cpp |
index b0e082c27ed9f79f1a371afe613306673bb71cb0..af3e06b94fbc961b0174ead57e113f26e824180c 100644 |
--- a/Source/core/frame/DOMWindowTimers.cpp |
+++ b/Source/core/frame/DOMWindowTimers.cpp |
@@ -40,25 +40,25 @@ namespace WebCore { |
namespace DOMWindowTimers { |
-int setTimeout(EventTarget* eventTarget, PassOwnPtr<ScheduledAction> action, int timeout) |
+int setTimeout(EventTarget& eventTarget, PassOwnPtr<ScheduledAction> action, int timeout) |
{ |
- return DOMTimer::install(eventTarget->executionContext(), action, timeout, true); |
+ return DOMTimer::install(eventTarget.executionContext(), action, timeout, true); |
} |
-int setInterval(EventTarget* eventTarget, PassOwnPtr<ScheduledAction> action, int timeout) |
+int setInterval(EventTarget& eventTarget, PassOwnPtr<ScheduledAction> action, int timeout) |
{ |
- return DOMTimer::install(eventTarget->executionContext(), action, timeout, false); |
+ return DOMTimer::install(eventTarget.executionContext(), action, timeout, false); |
} |
-void clearTimeout(EventTarget* eventTarget, int timeoutID) |
+void clearTimeout(EventTarget& eventTarget, int timeoutID) |
{ |
- if (ExecutionContext* context = eventTarget->executionContext()) |
+ if (ExecutionContext* context = eventTarget.executionContext()) |
DOMTimer::removeByID(context, timeoutID); |
} |
-void clearInterval(EventTarget* eventTarget, int timeoutID) |
+void clearInterval(EventTarget& eventTarget, int timeoutID) |
{ |
- if (ExecutionContext* context = eventTarget->executionContext()) |
+ if (ExecutionContext* context = eventTarget.executionContext()) |
DOMTimer::removeByID(context, timeoutID); |
} |