| 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 223e6da90195dab6b3a4283ddfc273f19d3fd647..5e5b1bec44996c9417eab0440084932643e50d56 100644
|
| --- a/third_party/WebKit/Source/bindings/core/v8/V8Binding.cpp
|
| +++ b/third_party/WebKit/Source/bindings/core/v8/V8Binding.cpp
|
| @@ -725,24 +725,6 @@ DOMWindow* toDOMWindow(v8::Local<v8::Context> context) {
|
|
|
| LocalDOMWindow* enteredDOMWindow(v8::Isolate* isolate) {
|
| LocalDOMWindow* window =
|
| - toLocalDOMWindow(toDOMWindow(isolate->GetEnteredContext()));
|
| - if (!window) {
|
| - // We don't always have an entered DOM window, for example during microtask
|
| - // callbacks from V8 (where the entered context may be the DOM-in-JS
|
| - // context). In that case, we fall back to the current context.
|
| - //
|
| - // TODO(haraken): It's nasty to return a current window from
|
| - // enteredDOMWindow. All call sites should be updated so that it works even
|
| - // if it doesn't have an entered window. Consider using
|
| - // enteredOrMicrotaskDOMWindow everywhere.
|
| - window = currentDOMWindow(isolate);
|
| - ASSERT(window);
|
| - }
|
| - return window;
|
| -}
|
| -
|
| -LocalDOMWindow* enteredOrMicrotaskDOMWindow(v8::Isolate* isolate) {
|
| - LocalDOMWindow* window =
|
| toLocalDOMWindow(toDOMWindow(isolate->GetEnteredOrMicrotaskContext()));
|
| DCHECK(window);
|
| return window;
|
|
|