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

Unified Diff: third_party/WebKit/Source/bindings/core/v8/V8Binding.cpp

Issue 2626183003: Switch RemoteWindowProxy to use v8::Context::NewRemoteContext. (Closed)
Patch Set: rebase Created 3 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: third_party/WebKit/Source/bindings/core/v8/V8Binding.cpp
diff --git a/third_party/WebKit/Source/bindings/core/v8/V8Binding.cpp b/third_party/WebKit/Source/bindings/core/v8/V8Binding.cpp
index 2f3ed9fc2b99442aec45b92025575b18201427fa..92f852797a9cd13d905cdb9a2e168b6cd69e0548 100644
--- a/third_party/WebKit/Source/bindings/core/v8/V8Binding.cpp
+++ b/third_party/WebKit/Source/bindings/core/v8/V8Binding.cpp
@@ -823,7 +823,7 @@ v8::Local<v8::Context> toV8Context(ExecutionContext* context,
return v8::Local<v8::Context>();
}
-v8::Local<v8::Context> toV8Context(Frame* frame, DOMWrapperWorld& world) {
+v8::Local<v8::Context> toV8Context(LocalFrame* frame, DOMWrapperWorld& world) {
if (!frame)
return v8::Local<v8::Context>();
v8::Local<v8::Context> context = toV8ContextEvenIfDetached(frame, world);
@@ -837,10 +837,10 @@ v8::Local<v8::Context> toV8Context(Frame* frame, DOMWrapperWorld& world) {
return v8::Local<v8::Context>();
}
-v8::Local<v8::Context> toV8ContextEvenIfDetached(Frame* frame,
+v8::Local<v8::Context> toV8ContextEvenIfDetached(LocalFrame* frame,
DOMWrapperWorld& world) {
ASSERT(frame);
- return frame->windowProxy(world)->contextIfInitialized();
+ return frame->script().windowProxy(world)->contextIfInitialized();
}
void crashIfIsolateIsDead(v8::Isolate* isolate) {

Powered by Google App Engine
This is Rietveld 408576698