Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(232)

Side by Side Diff: Source/WebCore/dom/CharacterData.cpp

Issue 10446008: Merge 116618 (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1132/
Patch Set: Created 8 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « LayoutTests/fast/events/scoped/editing-commands.html ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « LayoutTests/fast/events/scoped/editing-commands.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698