Index: Source/core/dom/MutationObserverRegistration.h |
diff --git a/Source/core/dom/MutationObserverRegistration.h b/Source/core/dom/MutationObserverRegistration.h |
index 7668c09b115c78a31a385dd3a26cf3a0bc468d6c..034a4e3279d564468c46ea0e00797b5a26277d23 100644 |
--- a/Source/core/dom/MutationObserverRegistration.h |
+++ b/Source/core/dom/MutationObserverRegistration.h |
@@ -43,7 +43,7 @@ class QualifiedName; |
class MutationObserverRegistration FINAL : public NoBaseWillBeGarbageCollectedFinalized<MutationObserverRegistration> { |
public: |
- static PassOwnPtrWillBeRawPtr<MutationObserverRegistration> create(MutationObserver&, Node&, MutationObserverOptions, const HashSet<AtomicString>& attributeFilter); |
+ static PassOwnPtrWillBeRawPtr<MutationObserverRegistration> create(MutationObserver&, Node*, MutationObserverOptions, const HashSet<AtomicString>& attributeFilter); |
~MutationObserverRegistration(); |
void resetObservation(MutationObserverOptions, const HashSet<AtomicString>& attributeFilter); |
@@ -66,10 +66,13 @@ public: |
void dispose(); |
private: |
- MutationObserverRegistration(MutationObserver&, Node&, MutationObserverOptions, const HashSet<AtomicString>& attributeFilter); |
+ MutationObserverRegistration(MutationObserver&, Node*, MutationObserverOptions, const HashSet<AtomicString>& attributeFilter); |
RefPtrWillBeMember<MutationObserver> m_observer; |
- Node& m_registrationNode; |
+ RawPtrWillBeMember<Node> m_registrationNode; |
+ // FIXME: Oilpan: once a Member reference will keep a Node |
+ // and its tree alive, this keep-alive RefPtr can be |
+ // removed for Oilpan builds. |
Erik Corry
2014/05/06 07:32:09
The intended semantics is that m_registrationNode
sof
2014/05/06 22:03:25
Excellent information & description.
Weakened the
|
RefPtr<Node> m_registrationNodeKeepAlive; |
haraken
2014/05/05 16:54:52
I'd remove m_registrationNodeKeepAlive, even thoug
sof
2014/05/05 19:35:43
Definitely, this will wait until it has settled on
haraken
2014/05/06 06:32:23
We're trying to land Mads' CL by the end of this w
sof
2014/05/06 07:13:10
Thanks for the update, whenever it is ready :) Thi
|
typedef HashSet<RefPtr<Node> > NodeHashSet; |
OwnPtr<NodeHashSet> m_transientRegistrationNodes; |