Index: Source/core/frame/LocalDOMWindow.h |
diff --git a/Source/core/frame/LocalDOMWindow.h b/Source/core/frame/LocalDOMWindow.h |
index 54128d2cc0caa7ef140c363b7909efc279b4a1bf..419ee707f538c4abb15a2795aa6a5b61e5a3f16a 100644 |
--- a/Source/core/frame/LocalDOMWindow.h |
+++ b/Source/core/frame/LocalDOMWindow.h |
@@ -66,17 +66,17 @@ enum PageshowEventPersistence { |
// please ping dcheng@chromium.org first. You probably don't want to do that. |
class CORE_EXPORT LocalDOMWindow final : public DOMWindow, public WillBeHeapSupplementable<LocalDOMWindow>, public DOMWindowLifecycleNotifier { |
WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(LocalDOMWindow); |
+ WILL_BE_USING_PRE_FINALIZER(LocalDOMWindow, dispose); |
public: |
static PassRefPtrWillBeRawPtr<Document> createDocument(const String& mimeType, const DocumentInit&, bool forceXHTML); |
static PassRefPtrWillBeRawPtr<LocalDOMWindow> create(LocalFrame& frame) |
{ |
return adoptRefWillBeNoop(new LocalDOMWindow(frame)); |
} |
+ |
virtual ~LocalDOMWindow(); |
+ void dispose(); |
- // LocalDOMWindow is eagerly finalized to allow the destructor |
- // to remove any event listeners still attached. |
- EAGERLY_FINALIZE(); |
DECLARE_VIRTUAL_TRACE(); |
PassRefPtrWillBeRawPtr<Document> installNewDocument(const String& mimeType, const DocumentInit&, bool forceXHTML = false); |