Changeset 116618 in webkit
- Timestamp:
- May 10, 2012 12:42:03 AM (12 years ago)
- Location:
- trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r116614 r116618 1 2012-05-10 Abhishek Arya <inferno@chromium.org> 2 3 Make DOMCharacterDataModified a scoped event (similar to r73690). 4 https://bugs.webkit.org/show_bug.cgi?id=85920 5 6 Reviewed by Ryosuke Niwa. 7 8 * fast/events/scoped/editing-commands.html: test modified to check DOMCharacterDataModified event. 9 1 10 2012-05-10 Zan Dobersek <zandobersek@gmail.com> 2 11 -
trunk/LayoutTests/fast/events/scoped/editing-commands.html
r73690 r116618 48 48 49 49 var events = { 50 'DOMCharacterDataModified': false, 50 51 'DOMSubtreeModified': false, 51 52 'DOMNodeInserted': false, -
trunk/Source/WebCore/ChangeLog
r116617 r116618 1 2012-05-10 Abhishek Arya <inferno@chromium.org> 2 3 Make DOMCharacterDataModified a scoped event (similar to r73690). 4 https://bugs.webkit.org/show_bug.cgi?id=85920 5 6 Reviewed by Ryosuke Niwa. 7 8 DOMCharacterDataModified was missing in the list of already scoped 9 DOM mutation events like DOMSubtreeModified, DOMNodeInserted, etc. 10 It helps to delay event dispatches until the completion of each call 11 of EditCommand::doApply. This has been useful in the past and helped to 12 prevent unexpected DOM tree mutations while the editing command is executing. 13 14 * dom/CharacterData.cpp: 15 (WebCore::CharacterData::dispatchModifiedEvent): 16 1 17 2012-05-10 Alexandre Elias <aelias@google.com> 2 18 -
trunk/Source/WebCore/dom/CharacterData.cpp
r110320 r116618 201 201 parentNode()->childrenChanged(); 202 202 if (document()->hasListenerType(Document::DOMCHARACTERDATAMODIFIED_LISTENER)) 203 dispatch Event(MutationEvent::create(eventNames().DOMCharacterDataModifiedEvent, true, 0, oldData, m_data));203 dispatchScopedEvent(MutationEvent::create(eventNames().DOMCharacterDataModifiedEvent, true, 0, oldData, m_data)); 204 204 dispatchSubtreeModifiedEvent(); 205 205 #if ENABLE(INSPECTOR)
Note: See TracChangeset
for help on using the changeset viewer.