Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(640)

Unified Diff: Source/core/frame/LocalDOMWindow.h

Issue 1148383012: Oilpan: prefer eager finalization over prefinalizers. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Source/core/frame/LocalDOMWindow.h
diff --git a/Source/core/frame/LocalDOMWindow.h b/Source/core/frame/LocalDOMWindow.h
index 88d1c7d514f69c024e5002ea78893d146382f828..b3c7ff38bef357a1750510c3e2a4b1c90e18bbdb 100644
--- a/Source/core/frame/LocalDOMWindow.h
+++ b/Source/core/frame/LocalDOMWindow.h
@@ -66,7 +66,6 @@ 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)
@@ -74,7 +73,8 @@ public:
return adoptRefWillBeNoop(new LocalDOMWindow(frame));
}
virtual ~LocalDOMWindow();
- void dispose();
+ EAGERLY_FINALIZE();
haraken 2015/06/04 01:02:31 Add a comment. Ditto for the other EAGERLY_FINALIZ
sof 2015/06/04 07:54:39 Done.
+ DECLARE_VIRTUAL_TRACE();
PassRefPtrWillBeRawPtr<Document> installNewDocument(const String& mimeType, const DocumentInit&, bool forceXHTML = false);
@@ -83,7 +83,6 @@ public:
virtual LocalDOMWindow* toDOMWindow() override;
// DOMWindow overrides:
- DECLARE_VIRTUAL_TRACE();
bool isLocalDOMWindow() const override { return true; }
virtual LocalFrame* frame() const override;
Screen* screen() const override;

Powered by Google App Engine
This is Rietveld 408576698