Changeset 113279 in webkit
- Timestamp:
- Apr 4, 2012 7:50:25 PM (12 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r113278 r113279 1 2012-04-04 Rafael Weinstein <rafaelw@chromium.org> 2 3 [MutationObservers] implement takeRecords() 4 https://bugs.webkit.org/show_bug.cgi?id=83218 5 6 Reviewed by Ojan Vafai. 7 8 * fast/mutation/takeRecords-expected.txt: Added. 9 * fast/mutation/takeRecords.html: Added. 10 1 11 2012-04-04 Abhishek Arya <inferno@chromium.org> 2 12 -
trunk/Source/WebCore/ChangeLog
r113276 r113279 1 2012-04-04 Rafael Weinstein <rafaelw@chromium.org> 2 3 [MutationObservers] implement takeRecords() 4 https://bugs.webkit.org/show_bug.cgi?id=83218 5 6 Reviewed by Ojan Vafai. 7 8 This patch implements MutationObserver.takeRecords per the DOM4 spec. 9 takeRecords retrieves and clears any pending mutation records for 10 the observer. 11 12 Test: fast/mutation/takeRecords.html 13 14 * dom/WebKitMutationObserver.cpp: 15 (WebCore::WebKitMutationObserver::takeRecords): 16 (WebCore): 17 (WebCore::WebKitMutationObserver::deliver): 18 * dom/WebKitMutationObserver.h: 19 * dom/WebKitMutationObserver.idl: 20 1 21 2012-04-04 Shinya Kawanaka <shinyak@chromium.org> 2 22 -
trunk/Source/WebCore/dom/WebKitMutationObserver.cpp
r110465 r113279 101 101 } 102 102 103 Vector<RefPtr<MutationRecord> > WebKitMutationObserver::takeRecords() 104 { 105 Vector<RefPtr<MutationRecord> > records; 106 records.swap(m_records); 107 return records; 108 } 109 103 110 void WebKitMutationObserver::disconnect() 104 111 { … … 141 148 return; 142 149 143 MutationRecordArrayrecords;150 Vector<RefPtr<MutationRecord> > records; 144 151 records.swap(m_records); 145 152 -
trunk/Source/WebCore/dom/WebKitMutationObserver.h
r110465 r113279 80 80 81 81 void observe(Node*, MutationObserverOptions, const HashSet<AtomicString>& attributeFilter, ExceptionCode&); 82 Vector<RefPtr<MutationRecord> > takeRecords(); 82 83 void disconnect(); 83 84 void observationStarted(MutationObserverRegistration*); -
trunk/Source/WebCore/dom/WebKitMutationObserver.idl
r109035 r113279 37 37 [Custom] void observe(in Node target, in MutationObserverOptions options) 38 38 raises(DOMException); 39 sequence<MutationRecord> takeRecords(); 39 40 void disconnect(); 40 41 };
Note: See TracChangeset
for help on using the changeset viewer.