Don't leak Documents when using MutationObserver from extensions
[WebKit-https.git] / Source / WebCore / bindings / v8 / V8MutationCallback.h
index 5a3664298a368dfd4faa3f746b3b4a50216e9965..c4f98feabce3434fe31af3b0c07982e43a5260da 100644 (file)
 #define V8MutationCallback_h
 
 #include "ActiveDOMCallback.h"
 #define V8MutationCallback_h
 
 #include "ActiveDOMCallback.h"
+#include "DOMWrapperWorld.h"
 #include "MutationCallback.h"
 #include "ScopedPersistent.h"
 #include "MutationCallback.h"
 #include "ScopedPersistent.h"
-#include "WorldContextHandle.h"
 #include <v8.h>
 #include <v8.h>
+#include <wtf/RefPtr.h>
 
 namespace WebCore {
 
 
 namespace WebCore {
 
@@ -58,7 +59,7 @@ private:
     }
 
     ScopedPersistent<v8::Object> m_callback;
     }
 
     ScopedPersistent<v8::Object> m_callback;
-    WorldContextHandle m_worldContext;
+    RefPtr<DOMWrapperWorld> m_world;
 };
 
 }
 };
 
 }