summaryrefslogtreecommitdiff
path: root/Source/WebCore/bindings/js/DOMWrapperWorld.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WebCore/bindings/js/DOMWrapperWorld.cpp')
-rw-r--r--Source/WebCore/bindings/js/DOMWrapperWorld.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/Source/WebCore/bindings/js/DOMWrapperWorld.cpp b/Source/WebCore/bindings/js/DOMWrapperWorld.cpp
index c25efe24d..1187bc11e 100644
--- a/Source/WebCore/bindings/js/DOMWrapperWorld.cpp
+++ b/Source/WebCore/bindings/js/DOMWrapperWorld.cpp
@@ -21,6 +21,7 @@
#include "config.h"
#include "DOMWrapperWorld.h"
+#include "CommonVM.h"
#include "JSDOMWindow.h"
#include "ScriptController.h"
#include "WebCoreJSClientData.h"
@@ -30,20 +31,20 @@ using namespace JSC;
namespace WebCore {
-DOMWrapperWorld::DOMWrapperWorld(JSC::VM* vm, bool isNormal)
+DOMWrapperWorld::DOMWrapperWorld(JSC::VM& vm, bool isNormal)
: m_vm(vm)
, m_isNormal(isNormal)
{
- VM::ClientData* clientData = m_vm->clientData;
+ VM::ClientData* clientData = m_vm.clientData;
ASSERT(clientData);
- static_cast<WebCoreJSClientData*>(clientData)->rememberWorld(*this);
+ static_cast<JSVMClientData*>(clientData)->rememberWorld(*this);
}
DOMWrapperWorld::~DOMWrapperWorld()
{
- VM::ClientData* clientData = m_vm->clientData;
+ VM::ClientData* clientData = m_vm.clientData;
ASSERT(clientData);
- static_cast<WebCoreJSClientData*>(clientData)->forgetWorld(*this);
+ static_cast<JSVMClientData*>(clientData)->forgetWorld(*this);
// These items are created lazily.
while (!m_scriptControllersWithWindowShells.isEmpty())
@@ -53,7 +54,6 @@ DOMWrapperWorld::~DOMWrapperWorld()
void DOMWrapperWorld::clearWrappers()
{
m_wrappers.clear();
- m_stringCache.clear();
// These items are created lazily.
while (!m_scriptControllersWithWindowShells.isEmpty())
@@ -64,13 +64,13 @@ DOMWrapperWorld& normalWorld(JSC::VM& vm)
{
VM::ClientData* clientData = vm.clientData;
ASSERT(clientData);
- return static_cast<WebCoreJSClientData*>(clientData)->normalWorld();
+ return static_cast<JSVMClientData*>(clientData)->normalWorld();
}
DOMWrapperWorld& mainThreadNormalWorld()
{
ASSERT(isMainThread());
- static DOMWrapperWorld& cachedNormalWorld = normalWorld(*JSDOMWindow::commonVM());
+ static DOMWrapperWorld& cachedNormalWorld = normalWorld(commonVM());
return cachedNormalWorld;
}