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

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

Issue 171333003: Pass implementation object to supplemental classes by reference (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase Created 6 years, 10 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
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);
}

Powered by Google App Engine
This is Rietveld 408576698