Changeset 109058 in webkit
- Timestamp:
- Feb 27, 2012 6:34:20 PM (12 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r109055 r109058 1 2012-02-27 Adam Klein <adamk@chromium.org> 2 3 [MutationObservers] Clear pending mutation records on disconnect() 4 https://bugs.webkit.org/show_bug.cgi?id=78639 5 6 Reviewed by Ojan Vafai. 7 8 * fast/mutation/disconnect-cancel-pending-expected.txt: Added. 9 * fast/mutation/disconnect-cancel-pending.html: Added. 10 1 11 2012-02-27 Brady Eidson <beidson@apple.com> 2 12 -
trunk/Source/WebCore/ChangeLog
r109054 r109058 1 2012-02-27 Adam Klein <adamk@chromium.org> 2 3 [MutationObservers] Clear pending mutation records on disconnect() 4 https://bugs.webkit.org/show_bug.cgi?id=78639 5 6 Reviewed by Ojan Vafai. 7 8 Test: fast/mutation/disconnect-cancel-pending.html 9 10 * dom/WebKitMutationObserver.cpp: 11 (WebCore::WebKitMutationObserver::disconnect): Clear pending records. 12 (WebCore::WebKitMutationObserver::deliver): Avoid calling the callback if no records are pending delivery. 13 1 14 2012-02-27 Adam Klein <adamk@chromium.org> 2 15 -
trunk/Source/WebCore/dom/WebKitMutationObserver.cpp
r107170 r109058 90 90 void WebKitMutationObserver::disconnect() 91 91 { 92 m_records.clear(); 92 93 HashSet<MutationObserverRegistration*> registrations(m_registrations); 93 94 for (HashSet<MutationObserverRegistration*>::iterator iter = registrations.begin(); iter != registrations.end(); ++iter) … … 124 125 void WebKitMutationObserver::deliver() 125 126 { 127 if (m_records.isEmpty()) 128 return; 129 126 130 MutationRecordArray records; 127 131 records.swap(m_records);
Note: See TracChangeset
for help on using the changeset viewer.