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

Unified Diff: Source/core/dom/MutationObserverRegistration.h

Issue 265793017: Oilpan: move node/element rare data objects to the heap. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Adjust MutationObserverRegistration::create() signature slightly Created 6 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/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;

Powered by Google App Engine
This is Rietveld 408576698