| Index: Source/bindings/v8/DOMWrapperWorld.cpp
|
| diff --git a/Source/bindings/v8/DOMWrapperWorld.cpp b/Source/bindings/v8/DOMWrapperWorld.cpp
|
| index 7fb57aedf587822a1aa0d0256aafd1fc3b9b745e..69dca91c87dac2fcccae8bf14e72e9683211faab 100644
|
| --- a/Source/bindings/v8/DOMWrapperWorld.cpp
|
| +++ b/Source/bindings/v8/DOMWrapperWorld.cpp
|
| @@ -56,13 +56,8 @@ PassRefPtr<DOMWrapperWorld> DOMWrapperWorld::create(int worldId, int extensionGr
|
| DOMWrapperWorld::DOMWrapperWorld(int worldId, int extensionGroup)
|
| : m_worldId(worldId)
|
| , m_extensionGroup(extensionGroup)
|
| + , m_domDataStore(adoptPtr(new DOMDataStore(isMainWorld())))
|
| {
|
| - if (isMainWorld())
|
| - m_domDataStore = adoptPtr(new DOMDataStore(MainWorld));
|
| - else if (isIsolatedWorld())
|
| - m_domDataStore = adoptPtr(new DOMDataStore(IsolatedWorld));
|
| - else if (isWorkerWorld())
|
| - m_domDataStore = adoptPtr(new DOMDataStore(WorkerWorld));
|
| }
|
|
|
| DOMWrapperWorld* DOMWrapperWorld::current(v8::Isolate* isolate)
|
|
|