| Index: third_party/WebKit/Source/bindings/core/v8/V8Binding.h
|
| diff --git a/third_party/WebKit/Source/bindings/core/v8/V8Binding.h b/third_party/WebKit/Source/bindings/core/v8/V8Binding.h
|
| index 81b839e5862974baf9cb0b5b6aac647a29e9b3a4..a06d2060706529fd82d3ad89cd8bc691c9ec6799 100644
|
| --- a/third_party/WebKit/Source/bindings/core/v8/V8Binding.h
|
| +++ b/third_party/WebKit/Source/bindings/core/v8/V8Binding.h
|
| @@ -1004,6 +1004,13 @@ CORE_EXPORT v8::Local<v8::Context> toV8Context(LocalFrame*, DOMWrapperWorld&);
|
| CORE_EXPORT v8::Local<v8::Context> toV8ContextEvenIfDetached(LocalFrame*,
|
| DOMWrapperWorld&);
|
|
|
| +// These methods can return nullptr if the context associated with the
|
| +// ScriptState has already been detached.
|
| +CORE_EXPORT ScriptState* toScriptState(LocalFrame*, DOMWrapperWorld&);
|
| +// Do not use this method unless you are sure you should use the main world's
|
| +// ScriptState
|
| +CORE_EXPORT ScriptState* toScriptStateForMainWorld(LocalFrame*);
|
| +
|
| // Returns the frame object of the window object associated with
|
| // a context, if the window is currently being displayed in a Frame.
|
| CORE_EXPORT LocalFrame* toLocalFrameIfNotDetached(v8::Local<v8::Context>);
|
|
|