| Index: Source/WebCore/dom/CharacterData.cpp
|
| ===================================================================
|
| --- Source/WebCore/dom/CharacterData.cpp (revision 127640)
|
| +++ Source/WebCore/dom/CharacterData.cpp (working copy)
|
| @@ -209,14 +209,16 @@
|
| if (OwnPtr<MutationObserverInterestGroup> mutationRecipients = MutationObserverInterestGroup::createForCharacterDataMutation(this))
|
| mutationRecipients->enqueueMutationRecord(MutationRecord::createCharacterData(this, oldData));
|
| #endif
|
| - if (parentNode())
|
| - parentNode()->childrenChanged();
|
| - if (document()->hasListenerType(Document::DOMCHARACTERDATAMODIFIED_LISTENER))
|
| - dispatchScopedEvent(MutationEvent::create(eventNames().DOMCharacterDataModifiedEvent, true, 0, oldData, m_data));
|
| - dispatchSubtreeModifiedEvent();
|
| + if (!isInShadowTree()) {
|
| + if (parentNode())
|
| + parentNode()->childrenChanged();
|
| + if (document()->hasListenerType(Document::DOMCHARACTERDATAMODIFIED_LISTENER))
|
| + dispatchScopedEvent(MutationEvent::create(eventNames().DOMCharacterDataModifiedEvent, true, 0, oldData, m_data));
|
| + dispatchSubtreeModifiedEvent();
|
| #if ENABLE(INSPECTOR)
|
| - InspectorInstrumentation::characterDataModified(document(), this);
|
| + InspectorInstrumentation::characterDataModified(document(), this);
|
| #endif
|
| + }
|
| }
|
|
|
| void CharacterData::checkCharDataOperation(unsigned offset, ExceptionCode& ec)
|
|
|