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

Unified Diff: third_party/WebKit/WebCore/dom/ScriptExecutionContext.cpp

Issue 20076: WebKit merge 40500:40539 [WebKit side] (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 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
« no previous file with comments | « third_party/WebKit/WebCore/dom/ScriptExecutionContext.h ('k') | third_party/WebKit/WebCore/dom/Worker.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/WebCore/dom/ScriptExecutionContext.cpp
===================================================================
--- third_party/WebKit/WebCore/dom/ScriptExecutionContext.cpp (revision 9118)
+++ third_party/WebKit/WebCore/dom/ScriptExecutionContext.cpp (working copy)
@@ -175,6 +175,22 @@
m_securityOrigin = securityOrigin;
}
+void ScriptExecutionContext::addTimeout(int timeoutId, DOMTimer* timer)
+{
+ ASSERT(!m_timeouts.contains(timeoutId));
+ m_timeouts.set(timeoutId, timer);
+}
+
+void ScriptExecutionContext::removeTimeout(int timeoutId)
+{
+ m_timeouts.remove(timeoutId);
+}
+
+DOMTimer* ScriptExecutionContext::findTimeout(int timeoutId)
+{
+ return m_timeouts.get(timeoutId);
+}
+
ScriptExecutionContext::Task::~Task()
{
}
« no previous file with comments | « third_party/WebKit/WebCore/dom/ScriptExecutionContext.h ('k') | third_party/WebKit/WebCore/dom/Worker.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698