Changeset 126096 in webkit
- Timestamp:
- Aug 20, 2012 4:57:30 PM (12 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r126094 r126096 1 2012-08-20 Kentaro Hara <haraken@chromium.org> 2 3 [V8] Remove V8Proxy from V8IsolatedContext 4 https://bugs.webkit.org/show_bug.cgi?id=94450 5 6 Reviewed by Adam Barth. 7 8 This patch removes dependency on V8Proxy from V8IsolatedContext. 9 10 No tests. No change in behavior. 11 12 * bindings/v8/ScriptController.cpp: 13 (WebCore::ScriptController::evaluateInIsolatedWorld): 14 * bindings/v8/V8IsolatedContext.cpp: 15 (WebCore::V8IsolatedContext::V8IsolatedContext): 16 * bindings/v8/V8IsolatedContext.h: 17 (WebCore): 18 (V8IsolatedContext): 19 1 20 2012-08-20 Philip Rogers <pdr@google.com> 2 21 -
trunk/Source/WebCore/bindings/v8/ScriptController.cpp
r126086 r126096 221 221 isolatedContext = iter->second; 222 222 else { 223 isolatedContext = new V8IsolatedContext( proxy(), extensionGroup, worldID);223 isolatedContext = new V8IsolatedContext(m_frame, extensionGroup, worldID); 224 224 if (isolatedContext->context().IsEmpty()) { 225 225 delete isolatedContext; … … 235 235 isolatedContext->setSecurityOrigin(securityOriginIter->second); 236 236 } else { 237 isolatedContext = new V8IsolatedContext( proxy(), extensionGroup, worldID);237 isolatedContext = new V8IsolatedContext(m_frame, extensionGroup, worldID); 238 238 if (isolatedContext->context().IsEmpty()) { 239 239 delete isolatedContext; -
trunk/Source/WebCore/bindings/v8/V8IsolatedContext.cpp
r126066 r126096 39 39 #include "V8DOMWindow.h" 40 40 #include "V8PerContextData.h" 41 #include "V8Proxy.h"42 41 #include <wtf/StringExtras.h> 43 42 … … 66 65 } 67 66 68 V8IsolatedContext::V8IsolatedContext( V8Proxy* proxy, int extensionGroup, int worldId)67 V8IsolatedContext::V8IsolatedContext(Frame* frame, int extensionGroup, int worldId) 69 68 : m_world(IsolatedWorld::create(worldId)), 70 m_frame( proxy->frame())69 m_frame(frame) 71 70 { 72 71 v8::HandleScope scope; 73 v8::Handle<v8::Context> mainWorldContext = proxy->windowShell()->context();72 v8::Handle<v8::Context> mainWorldContext = frame->script()->windowShell()->context(); 74 73 if (mainWorldContext.IsEmpty()) 75 74 return; 76 75 77 76 // FIXME: We should be creating a new V8DOMWindowShell here instead of riping out the context. 78 m_context = SharedPersistent<v8::Context>::create( proxy->windowShell()->createNewContext(v8::Handle<v8::Object>(), extensionGroup, m_world->id()));77 m_context = SharedPersistent<v8::Context>::create(frame->script()->windowShell()->createNewContext(v8::Handle<v8::Object>(), extensionGroup, m_world->id())); 79 78 if (m_context->get().IsEmpty()) 80 79 return; … … 91 90 92 91 // FIXME: This will go away once we have a windowShell for the isolated world. 93 proxy->windowShell()->installDOMWindow(m_context->get(), m_frame->document()->domWindow());92 frame->script()->windowShell()->installDOMWindow(m_context->get(), m_frame->document()->domWindow()); 94 93 95 94 // Using the default security token means that the canAccess is always -
trunk/Source/WebCore/bindings/v8/V8IsolatedContext.h
r126066 r126096 40 40 namespace WebCore { 41 41 42 class Frame; 42 43 class SecurityOrigin; 43 44 class V8PerContextData; 44 class V8Proxy;45 45 46 46 // V8IsolatedContext … … 60 60 // Creates an isolated world. To destroy it, call destroy(). 61 61 // This will delete the isolated world when the context it owns is GC'd. 62 V8IsolatedContext( V8Proxy*, int extensionGroup, int worldId);62 V8IsolatedContext(Frame*, int extensionGroup, int worldId); 63 63 ~V8IsolatedContext(); 64 64
Note: See TracChangeset
for help on using the changeset viewer.