OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) | 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) |
4 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights
reserved. | 4 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights
reserved. |
5 * | 5 * |
6 * This library is free software; you can redistribute it and/or | 6 * This library is free software; you can redistribute it and/or |
7 * modify it under the terms of the GNU Library General Public | 7 * modify it under the terms of the GNU Library General Public |
8 * License as published by the Free Software Foundation; either | 8 * License as published by the Free Software Foundation; either |
9 * version 2 of the License, or (at your option) any later version. | 9 * version 2 of the License, or (at your option) any later version. |
10 * | 10 * |
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
193 | 193 |
194 void CharacterData::dispatchModifiedEvent(const String& oldData) | 194 void CharacterData::dispatchModifiedEvent(const String& oldData) |
195 { | 195 { |
196 #if ENABLE(MUTATION_OBSERVERS) | 196 #if ENABLE(MUTATION_OBSERVERS) |
197 if (OwnPtr<MutationObserverInterestGroup> mutationRecipients = MutationObser
verInterestGroup::createForCharacterDataMutation(this)) | 197 if (OwnPtr<MutationObserverInterestGroup> mutationRecipients = MutationObser
verInterestGroup::createForCharacterDataMutation(this)) |
198 mutationRecipients->enqueueMutationRecord(MutationRecord::createCharacte
rData(this, oldData)); | 198 mutationRecipients->enqueueMutationRecord(MutationRecord::createCharacte
rData(this, oldData)); |
199 #endif | 199 #endif |
200 if (parentNode()) | 200 if (parentNode()) |
201 parentNode()->childrenChanged(); | 201 parentNode()->childrenChanged(); |
202 if (document()->hasListenerType(Document::DOMCHARACTERDATAMODIFIED_LISTENER)
) | 202 if (document()->hasListenerType(Document::DOMCHARACTERDATAMODIFIED_LISTENER)
) |
203 dispatchEvent(MutationEvent::create(eventNames().DOMCharacterDataModifie
dEvent, true, 0, oldData, m_data)); | 203 dispatchScopedEvent(MutationEvent::create(eventNames().DOMCharacterDataM
odifiedEvent, true, 0, oldData, m_data)); |
204 dispatchSubtreeModifiedEvent(); | 204 dispatchSubtreeModifiedEvent(); |
205 #if ENABLE(INSPECTOR) | 205 #if ENABLE(INSPECTOR) |
206 InspectorInstrumentation::characterDataModified(document(), this); | 206 InspectorInstrumentation::characterDataModified(document(), this); |
207 #endif | 207 #endif |
208 } | 208 } |
209 | 209 |
210 void CharacterData::checkCharDataOperation(unsigned offset, ExceptionCode& ec) | 210 void CharacterData::checkCharDataOperation(unsigned offset, ExceptionCode& ec) |
211 { | 211 { |
212 ec = 0; | 212 ec = 0; |
213 | 213 |
(...skipping 16 matching lines...) Expand all Loading... |
230 return false; | 230 return false; |
231 return Node::rendererIsNeeded(context); | 231 return Node::rendererIsNeeded(context); |
232 } | 232 } |
233 | 233 |
234 bool CharacterData::offsetInCharacters() const | 234 bool CharacterData::offsetInCharacters() const |
235 { | 235 { |
236 return true; | 236 return true; |
237 } | 237 } |
238 | 238 |
239 } // namespace WebCore | 239 } // namespace WebCore |
OLD | NEW |