Index: Source/core/dom/MutationObserverRegistration.h |
diff --git a/Source/core/dom/MutationObserverRegistration.h b/Source/core/dom/MutationObserverRegistration.h |
index 7c0fb52783901c69737ec7a4cbc4412e25fe32a3..8bc80d4faf2ab9c04dd64dbf707e0a8721d2373e 100644 |
--- a/Source/core/dom/MutationObserverRegistration.h |
+++ b/Source/core/dom/MutationObserverRegistration.h |
@@ -42,29 +42,29 @@ class QualifiedName; |
class MutationObserverRegistration { |
public: |
- static PassOwnPtr<MutationObserverRegistration> create(PassRefPtr<MutationObserver>, Node*, MutationObserverOptions, const HashSet<AtomicString>& attributeFilter); |
+ static PassOwnPtr<MutationObserverRegistration> create(MutationObserver&, Node&, MutationObserverOptions, const HashSet<AtomicString>& attributeFilter); |
~MutationObserverRegistration(); |
void resetObservation(MutationObserverOptions, const HashSet<AtomicString>& attributeFilter); |
- void observedSubtreeNodeWillDetach(Node*); |
+ void observedSubtreeNodeWillDetach(Node&); |
void clearTransientRegistrations(); |
bool hasTransientRegistrations() const { return m_transientRegistrationNodes && !m_transientRegistrationNodes->isEmpty(); } |
void unregister(); |
- bool shouldReceiveMutationFrom(Node*, MutationObserver::MutationType, const QualifiedName* attributeName) const; |
+ bool shouldReceiveMutationFrom(Node&, MutationObserver::MutationType, const QualifiedName* attributeName) const; |
bool isSubtree() const { return m_options & MutationObserver::Subtree; } |
- MutationObserver* observer() const { return m_observer.get(); } |
+ MutationObserver& observer() const { return *m_observer; } |
MutationRecordDeliveryOptions deliveryOptions() const { return m_options & (MutationObserver::AttributeOldValue | MutationObserver::CharacterDataOldValue); } |
MutationObserverOptions mutationTypes() const { return m_options & MutationObserver::AllMutationTypes; } |
void addRegistrationNodesToSet(HashSet<Node*>&) const; |
private: |
- MutationObserverRegistration(PassRefPtr<MutationObserver>, Node*, MutationObserverOptions, const HashSet<AtomicString>& attributeFilter); |
+ MutationObserverRegistration(MutationObserver&, Node&, MutationObserverOptions, const HashSet<AtomicString>& attributeFilter); |
RefPtr<MutationObserver> m_observer; |
- Node* m_registrationNode; |
+ Node& m_registrationNode; |
RefPtr<Node> m_registrationNodeKeepAlive; |
typedef HashSet<RefPtr<Node> > NodeHashSet; |
OwnPtr<NodeHashSet> m_transientRegistrationNodes; |