| Index: webkit/glue/webframe_impl.cc
|
| diff --git a/webkit/glue/webframe_impl.cc b/webkit/glue/webframe_impl.cc
|
| index 3e418e788bdc6cfe10d2830b5020e85b0837ba29..9bc3e5601a42876bf4b551f0b02f30178c3f63bf 100644
|
| --- a/webkit/glue/webframe_impl.cc
|
| +++ b/webkit/glue/webframe_impl.cc
|
| @@ -824,6 +824,17 @@ NPObject* WebFrameImpl::GetWindowNPObject() {
|
| return frame_->script()->windowScriptNPObject();
|
| }
|
|
|
| +#if USE(V8)
|
| + // Returns the V8 context for this frame, or an empty handle if there is
|
| + // none.
|
| +v8::Local<v8::Context> WebFrameImpl::GetScriptContext() {
|
| + if (!frame_)
|
| + return v8::Local<v8::Context>();
|
| +
|
| + return frame_->script()->proxy()->GetContext();
|
| +}
|
| +#endif
|
| +
|
| void WebFrameImpl::InvalidateArea(AreaToInvalidate area) {
|
| ASSERT(frame() && frame()->view());
|
| #if defined(OS_WIN) || defined(OS_LINUX)
|
|
|