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

Unified Diff: third_party/WebKit/Source/modules/worklet/WorkletGlobalScope.cpp

Issue 1590583002: Expose worklet on Window through attribute renderWorklet. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 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
Index: third_party/WebKit/Source/modules/worklet/WorkletGlobalScope.cpp
diff --git a/third_party/WebKit/Source/modules/worklet/WorkletGlobalScope.cpp b/third_party/WebKit/Source/modules/worklet/WorkletGlobalScope.cpp
index e2ead6ea6739919f04dd404a478d92b0f0436cf2..15819a4a16dc0a95ab5071e3fa6d2207891a1f1c 100644
--- a/third_party/WebKit/Source/modules/worklet/WorkletGlobalScope.cpp
+++ b/third_party/WebKit/Source/modules/worklet/WorkletGlobalScope.cpp
@@ -11,13 +11,14 @@ namespace blink {
// static
PassRefPtrWillBeRawPtr<WorkletGlobalScope> WorkletGlobalScope::create(const KURL& url, const String& userAgent, v8::Isolate* isolate)
{
- return adoptRefWillBeNoop(new WorkletGlobalScope(url, userAgent, isolate));
+ RefPtrWillBeRawPtr<WorkletGlobalScope> workletGlobalScope = adoptRefWillBeNoop(new WorkletGlobalScope(url, userAgent, isolate));
+ workletGlobalScope->script()->initializeContextIfNeeded();
ikilpatrick 2016/01/14 19:31:57 This was added here as within: V8DOMWrapper::assoc
+ return workletGlobalScope.release();
}
WorkletGlobalScope::WorkletGlobalScope(const KURL& url, const String& userAgent, v8::Isolate* isolate)
: m_script(WorkerOrWorkletScriptController::create(this, isolate))
{
- m_script->initializeContextIfNeeded();
}
WorkletGlobalScope::~WorkletGlobalScope()

Powered by Google App Engine
This is Rietveld 408576698