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

Side by Side Diff: Source/WebCore/dom/WebKitMutationObserver.h

Issue 9999033: Merge 113378 - Crash in MutationObservers due to an invalid HashSet iterator (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1084/
Patch Set: Created 8 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2011 Google Inc. All rights reserved. 2 * Copyright (C) 2011 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 static PassRefPtr<WebKitMutationObserver> create(PassRefPtr<MutationCallback >); 76 static PassRefPtr<WebKitMutationObserver> create(PassRefPtr<MutationCallback >);
77 static void deliverAllMutations(); 77 static void deliverAllMutations();
78 78
79 ~WebKitMutationObserver(); 79 ~WebKitMutationObserver();
80 80
81 void observe(Node*, MutationObserverOptions, const HashSet<AtomicString>& at tributeFilter, ExceptionCode&); 81 void observe(Node*, MutationObserverOptions, const HashSet<AtomicString>& at tributeFilter, ExceptionCode&);
82 void disconnect(); 82 void disconnect();
83 void observationStarted(MutationObserverRegistration*); 83 void observationStarted(MutationObserverRegistration*);
84 void observationEnded(MutationObserverRegistration*); 84 void observationEnded(MutationObserverRegistration*);
85 void enqueueMutationRecord(PassRefPtr<MutationRecord>); 85 void enqueueMutationRecord(PassRefPtr<MutationRecord>);
86 void setHasTransientRegistration();
86 87
87 private: 88 private:
88 struct ObserverLessThan; 89 struct ObserverLessThan;
89 90
90 WebKitMutationObserver(PassRefPtr<MutationCallback>); 91 WebKitMutationObserver(PassRefPtr<MutationCallback>);
91 void deliver(); 92 void deliver();
92 93
93 static bool validateOptions(MutationObserverOptions); 94 static bool validateOptions(MutationObserverOptions);
94 95
95 RefPtr<MutationCallback> m_callback; 96 RefPtr<MutationCallback> m_callback;
96 Vector<RefPtr<MutationRecord> > m_records; 97 Vector<RefPtr<MutationRecord> > m_records;
97 HashSet<MutationObserverRegistration*> m_registrations; 98 HashSet<MutationObserverRegistration*> m_registrations;
98 unsigned m_priority; 99 unsigned m_priority;
99 }; 100 };
100 101
101 } 102 }
102 103
103 #endif // ENABLE(MUTATION_OBSERVERS) 104 #endif // ENABLE(MUTATION_OBSERVERS)
104 105
105 #endif // WebKitMutationObserver_h 106 #endif // WebKitMutationObserver_h
OLDNEW
« no previous file with comments | « Source/WebCore/dom/MutationObserverRegistration.cpp ('k') | Source/WebCore/dom/WebKitMutationObserver.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698