diff options
Diffstat (limited to 'webkit/port/bindings/v8/v8_proxy.cpp')
-rw-r--r-- | webkit/port/bindings/v8/v8_proxy.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/webkit/port/bindings/v8/v8_proxy.cpp b/webkit/port/bindings/v8/v8_proxy.cpp index 8693714..eb6250a 100644 --- a/webkit/port/bindings/v8/v8_proxy.cpp +++ b/webkit/port/bindings/v8/v8_proxy.cpp @@ -39,6 +39,7 @@ #include "v8_custom.h" #include "v8_collection.h" #include "v8_nodefilter.h" +#include "V8DOMWindow.h" #include "RefCounted.h" // for Peerable @@ -1812,7 +1813,8 @@ void V8Proxy::initContextIfNeeded() // Create a new environment using an empty template for the shadow // object. Reuse the global object if one has been created earlier. - v8::Local<v8::ObjectTemplate> global_template = v8::ObjectTemplate::New(); + v8::Persistent<v8::ObjectTemplate> global_template = + V8DOMWindow::GetShadowObjectTemplate(); if (global_template.IsEmpty()) return; |