Index: Source/core/page/Page.h |
diff --git a/Source/core/page/Page.h b/Source/core/page/Page.h |
index 54684b6a1bcafe1bdfde7333ae44b9161f92fcc7..06d688c3f2713979ae51ca2f9185531841a08f15 100644 |
--- a/Source/core/page/Page.h |
+++ b/Source/core/page/Page.h |
@@ -30,6 +30,7 @@ |
#include "platform/Supplementable.h" |
#include "platform/geometry/LayoutRect.h" |
#include "platform/geometry/Region.h" |
+#include "platform/heap/Handle.h" |
#include "wtf/Forward.h" |
#include "wtf/HashSet.h" |
#include "wtf/Noncopyable.h" |
@@ -201,7 +202,7 @@ public: |
double timerAlignmentInterval() const; |
- class MultisamplingChangedObserver { |
+ class MultisamplingChangedObserver : public WillBeGarbageCollectedMixin { |
public: |
virtual void multisamplingChanged(bool) = 0; |
}; |
@@ -215,7 +216,7 @@ public: |
PassOwnPtr<LifecycleNotifier<Page> > createLifecycleNotifier(); |
void trace(Visitor*); |
- |
+ void clearWeakMembers(Visitor*); |
void willBeDestroyed(); |
protected: |
@@ -281,7 +282,7 @@ private: |
bool m_isPainting; |
#endif |
- HashSet<MultisamplingChangedObserver*> m_multisamplingChangedObservers; |
+ WillBeHeapHashSet<RawPtrWillBeWeakMember<MultisamplingChangedObserver> > m_multisamplingChangedObservers; |
// A pointer to all the interfaces provided to in-process Frames for this Page. |
// FIXME: Most of the members of Page should move onto FrameHost. |