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

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

Issue 13646003: DevTools: Remove ENABLE(INSPECTOR) and ENABLE(JAVASCRIPT_DEBUGGER) from the code. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 8 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 | Annotate | Revision Log
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 201 matching lines...) Expand 10 before | Expand all | Expand 10 after
212 { 212 {
213 if (OwnPtr<MutationObserverInterestGroup> mutationRecipients = MutationObser verInterestGroup::createForCharacterDataMutation(this)) 213 if (OwnPtr<MutationObserverInterestGroup> mutationRecipients = MutationObser verInterestGroup::createForCharacterDataMutation(this))
214 mutationRecipients->enqueueMutationRecord(MutationRecord::createCharacte rData(this, oldData)); 214 mutationRecipients->enqueueMutationRecord(MutationRecord::createCharacte rData(this, oldData));
215 if (!isInShadowTree()) { 215 if (!isInShadowTree()) {
216 if (parentNode()) 216 if (parentNode())
217 parentNode()->childrenChanged(); 217 parentNode()->childrenChanged();
218 if (document()->hasListenerType(Document::DOMCHARACTERDATAMODIFIED_LISTE NER)) 218 if (document()->hasListenerType(Document::DOMCHARACTERDATAMODIFIED_LISTE NER))
219 dispatchScopedEvent(MutationEvent::create(eventNames().DOMCharacterD ataModifiedEvent, true, 0, oldData, m_data)); 219 dispatchScopedEvent(MutationEvent::create(eventNames().DOMCharacterD ataModifiedEvent, true, 0, oldData, m_data));
220 dispatchSubtreeModifiedEvent(); 220 dispatchSubtreeModifiedEvent();
221 } 221 }
222 #if ENABLE(INSPECTOR)
223 InspectorInstrumentation::characterDataModified(document(), this); 222 InspectorInstrumentation::characterDataModified(document(), this);
224 #endif
225 } 223 }
226 224
227 void CharacterData::checkCharDataOperation(unsigned offset, ExceptionCode& ec) 225 void CharacterData::checkCharDataOperation(unsigned offset, ExceptionCode& ec)
228 { 226 {
229 ec = 0; 227 ec = 0;
230 228
231 // INDEX_SIZE_ERR: Raised if the specified offset is negative or greater tha n the number of 16-bit 229 // INDEX_SIZE_ERR: Raised if the specified offset is negative or greater tha n the number of 16-bit
232 // units in data. 230 // units in data.
233 if (offset > length()) { 231 if (offset > length()) {
234 ec = INDEX_SIZE_ERR; 232 ec = INDEX_SIZE_ERR;
235 return; 233 return;
236 } 234 }
237 } 235 }
238 236
239 int CharacterData::maxCharacterOffset() const 237 int CharacterData::maxCharacterOffset() const
240 { 238 {
241 return static_cast<int>(length()); 239 return static_cast<int>(length());
242 } 240 }
243 241
244 bool CharacterData::offsetInCharacters() const 242 bool CharacterData::offsetInCharacters() const
245 { 243 {
246 return true; 244 return true;
247 } 245 }
248 246
249 } // namespace WebCore 247 } // namespace WebCore
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698