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

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

Issue 2702273004: bindings: Simplifies WindowProxyManager and its relation to Frame. (Closed)
Patch Set: Did changes in order to keep the exactly same behavior. Created 3 years, 9 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 5e5b1bec44996c9417eab0440084932643e50d56..581ab979fbd4c34dcbf760e25a56206d4b4abdca 100644
--- a/third_party/WebKit/Source/bindings/core/v8/V8Binding.cpp
+++ b/third_party/WebKit/Source/bindings/core/v8/V8Binding.cpp
@@ -950,8 +950,8 @@ v8::Isolate* toIsolate(ExecutionContext* context) {
}
v8::Isolate* toIsolate(LocalFrame* frame) {
- ASSERT(frame);
- return frame->script().isolate();
+ DCHECK(frame);
+ return frame->getWindowProxyManager()->isolate();
}
v8::Local<v8::Value> freezeV8Object(v8::Local<v8::Value> value,

Powered by Google App Engine
This is Rietveld 408576698