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

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

Issue 491053004: Expose Web Animations API to Web Workers (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Exposing the Web Animations API to Web Workers Created 6 years, 4 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/LocalDOMWindow.cpp
diff --git a/Source/core/frame/LocalDOMWindow.cpp b/Source/core/frame/LocalDOMWindow.cpp
index 8f94e75c8c754ce158dcee2d2878916784133eb9..f026ec42f0c20baa164ddb6ba859c435e36c11a7 100644
--- a/Source/core/frame/LocalDOMWindow.cpp
+++ b/Source/core/frame/LocalDOMWindow.cpp
@@ -181,6 +181,13 @@ static DOMWindowSet& windowsWithUnloadEventListeners()
return windowsWithUnloadEventListeners;
}
+PassRefPtr<Worker> LocalDOMWindow::createAnimationWorker(ExecutionContext * context, const String& url, ExceptionState & es)
+{
+ RefPtr<Worker> worker = Worker::create(context, url, es);
+ page()->m_ProxyMap->addToWorkerVector(worker);
+ return worker;
+}
+
static DOMWindowSet& windowsWithBeforeUnloadEventListeners()
{
DEFINE_STATIC_LOCAL(DOMWindowSet, windowsWithBeforeUnloadEventListeners, ());

Powered by Google App Engine
This is Rietveld 408576698