| 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, 2013 Apple Inc. All | 4 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2013 Apple Inc. All |
| 5 * rights reserved. | 5 * rights reserved. |
| 6 * | 6 * |
| 7 * This library is free software; you can redistribute it and/or | 7 * This library is free software; you can redistribute it and/or |
| 8 * modify it under the terms of the GNU Library General Public | 8 * modify it under the terms of the GNU Library General Public |
| 9 * License as published by the Free Software Foundation; either | 9 * License as published by the Free Software Foundation; either |
| 10 * version 2 of the License, or (at your option) any later version. | 10 * version 2 of the License, or (at your option) any later version. |
| (...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 208 // Skip DOM mutation events if the modification is from parser. | 208 // Skip DOM mutation events if the modification is from parser. |
| 209 // Note that mutation observer events will still fire. | 209 // Note that mutation observer events will still fire. |
| 210 // Spec: https://html.spec.whatwg.org/multipage/syntax.html#insert-a-character | 210 // Spec: https://html.spec.whatwg.org/multipage/syntax.html#insert-a-character |
| 211 if (source != UpdateFromParser && !isInShadowTree()) { | 211 if (source != UpdateFromParser && !isInShadowTree()) { |
| 212 if (document().hasListenerType(Document::DOMCHARACTERDATAMODIFIED_LISTENER)) | 212 if (document().hasListenerType(Document::DOMCHARACTERDATAMODIFIED_LISTENER)) |
| 213 dispatchScopedEvent( | 213 dispatchScopedEvent( |
| 214 MutationEvent::create(EventTypeNames::DOMCharacterDataModified, true, | 214 MutationEvent::create(EventTypeNames::DOMCharacterDataModified, true, |
| 215 nullptr, oldData, m_data)); | 215 nullptr, oldData, m_data)); |
| 216 dispatchSubtreeModifiedEvent(); | 216 dispatchSubtreeModifiedEvent(); |
| 217 } | 217 } |
| 218 InspectorInstrumentation::characterDataModified(this); | 218 probe::characterDataModified(this); |
| 219 } | 219 } |
| 220 | 220 |
| 221 int CharacterData::maxCharacterOffset() const { | 221 int CharacterData::maxCharacterOffset() const { |
| 222 return static_cast<int>(length()); | 222 return static_cast<int>(length()); |
| 223 } | 223 } |
| 224 | 224 |
| 225 } // namespace blink | 225 } // namespace blink |
| OLD | NEW |