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

Unified Diff: Source/bindings/v8/V8LazyEventListener.cpp

Issue 14334002: Delete WorldContextHandle in favor of DOMWrapperWorld (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 8 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/bindings/v8/V8LazyEventListener.cpp
diff --git a/Source/bindings/v8/V8LazyEventListener.cpp b/Source/bindings/v8/V8LazyEventListener.cpp
index 97069edc8c1d3a6e16ae13ba620e06262ea365a6..00f78a490c77a330ab717f03c191b33cb35b8b53 100644
--- a/Source/bindings/v8/V8LazyEventListener.cpp
+++ b/Source/bindings/v8/V8LazyEventListener.cpp
@@ -45,14 +45,13 @@
#include "V8HiddenPropertyName.h"
#include "V8Node.h"
#include "V8RecursionScope.h"
-#include "WorldContextHandle.h"
#include <wtf/StdLibExtras.h>
namespace WebCore {
V8LazyEventListener::V8LazyEventListener(const AtomicString& functionName, const AtomicString& eventParameterName, const String& code, const String sourceURL, const TextPosition& position, Node* node)
- : V8AbstractEventListener(true, WorldContextHandle(UseMainWorld), v8::Isolate::GetCurrent()) // FIXME Remove GetCurrent()
+ : V8AbstractEventListener(true, mainThreadNormalWorld(), v8::Isolate::GetCurrent()) // FIXME Remove GetCurrent()
, m_functionName(functionName)
, m_eventParameterName(eventParameterName)
, m_code(code)
@@ -127,7 +126,7 @@ void V8LazyEventListener::prepareListenerObject(ScriptExecutionContext* context)
v8::HandleScope handleScope;
// Use the outer scope to hold context.
- v8::Local<v8::Context> v8Context = toV8Context(context, worldContext());
+ v8::Local<v8::Context> v8Context = toV8Context(context, world());
v8::Isolate* isolate = v8Context->GetIsolate();
// Bail out if we cannot get the context.
if (v8Context.IsEmpty())

Powered by Google App Engine
This is Rietveld 408576698