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

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

Issue 552733003: Oilpan: make DOMWindowProperty a GC mixin. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Pacify GC plugin wrt LocalDOMWindow::trace() Created 6 years, 3 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/DOMWindowProperty.h
diff --git a/Source/core/frame/DOMWindowProperty.h b/Source/core/frame/DOMWindowProperty.h
index eb3542d30b268ca52d08918fd0ff5ce28a1d52ef..2666f88c0fe13096ea5714ecf1f10fff7d89652a 100644
--- a/Source/core/frame/DOMWindowProperty.h
+++ b/Source/core/frame/DOMWindowProperty.h
@@ -26,12 +26,14 @@
#ifndef DOMWindowProperty_h
#define DOMWindowProperty_h
+#include "platform/heap/Handle.h"
+
namespace blink {
class LocalDOMWindow;
class LocalFrame;
-class DOMWindowProperty {
+class DOMWindowProperty : public WillBeGarbageCollectedMixin {
public:
explicit DOMWindowProperty(LocalFrame*);
@@ -40,11 +42,15 @@ public:
LocalFrame* frame() const { return m_frame; }
+ virtual void trace(Visitor*);
+
protected:
+#if !ENABLE(OILPAN)
virtual ~DOMWindowProperty();
+#endif
LocalFrame* m_frame;
haraken 2014/09/10 02:49:36 How is it guaranteed that this m_frame does not be
sof 2014/09/10 05:49:40 It will be non-null if the LocalDOMWindow is someh
Mads Ager (chromium) 2014/09/10 06:34:13 My two cents: We should avoid using weakness if we
haraken 2014/09/10 07:46:53 Agreed. I prefer keeping the bi-directional strong
sof 2014/09/10 08:21:37 Yes, some tests (all resource leak related, i thin
haraken 2014/09/10 08:34:42 Thanks. What I want to understand is why the follo
- LocalDOMWindow* m_associatedDOMWindow;
+ RawPtrWillBeMember<LocalDOMWindow> m_associatedDOMWindow;
};
}

Powered by Google App Engine
This is Rietveld 408576698