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

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

Issue 257513002: Add synonyms for collection types over MutationObserver-related types. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 8 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
« no previous file with comments | « no previous file | Source/core/dom/MutationObserver.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/MutationObserver.h
diff --git a/Source/core/dom/MutationObserver.h b/Source/core/dom/MutationObserver.h
index 3d92d18bffd293a1c8c500d7a9f287c51fb31275..03d1d9ece153502e416cb4dacd05f80cec8ad4b3 100644
--- a/Source/core/dom/MutationObserver.h
+++ b/Source/core/dom/MutationObserver.h
@@ -45,6 +45,7 @@ namespace WebCore {
class Dictionary;
class ExceptionState;
class MutationCallback;
+class MutationObserver;
class MutationObserverRegistration;
class MutationRecord;
class Node;
@@ -52,6 +53,11 @@ class Node;
typedef unsigned char MutationObserverOptions;
typedef unsigned char MutationRecordDeliveryOptions;
+typedef WillBeHeapHashSet<RefPtrWillBeMember<MutationObserver> > MutationObserverSet;
+typedef WillBeHeapHashSet<RawPtrWillBeMember<MutationObserverRegistration> > MutationObserverRegistrationSet;
+typedef WillBeHeapVector<RefPtrWillBeMember<MutationObserver> > MutationObserverVector;
+typedef WillBeHeapVector<RefPtrWillBeMember<MutationRecord> > MutationRecordVector;
+
class MutationObserver FINAL : public RefCountedWillBeGarbageCollectedFinalized<MutationObserver>, public ScriptWrappable {
public:
enum MutationType {
@@ -98,8 +104,8 @@ private:
void deliver();
OwnPtr<MutationCallback> m_callback;
- WillBeHeapVector<RefPtrWillBeMember<MutationRecord> > m_records;
- WillBeHeapHashSet<RawPtrWillBeMember<MutationObserverRegistration> > m_registrations;
+ MutationRecordVector m_records;
+ MutationObserverRegistrationSet m_registrations;
unsigned m_priority;
};
« no previous file with comments | « no previous file | Source/core/dom/MutationObserver.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698