| 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 14 matching lines...) Expand all Loading... |
| 25 #include "bindings/core/v8/ExceptionState.h" | 25 #include "bindings/core/v8/ExceptionState.h" |
| 26 #include "core/dom/Document.h" | 26 #include "core/dom/Document.h" |
| 27 #include "core/dom/ExceptionCode.h" | 27 #include "core/dom/ExceptionCode.h" |
| 28 #include "core/dom/MutationObserverInterestGroup.h" | 28 #include "core/dom/MutationObserverInterestGroup.h" |
| 29 #include "core/dom/MutationRecord.h" | 29 #include "core/dom/MutationRecord.h" |
| 30 #include "core/dom/ProcessingInstruction.h" | 30 #include "core/dom/ProcessingInstruction.h" |
| 31 #include "core/dom/Text.h" | 31 #include "core/dom/Text.h" |
| 32 #include "core/editing/FrameSelection.h" | 32 #include "core/editing/FrameSelection.h" |
| 33 #include "core/events/MutationEvent.h" | 33 #include "core/events/MutationEvent.h" |
| 34 #include "core/probe/CoreProbes.h" | 34 #include "core/probe/CoreProbes.h" |
| 35 #include "wtf/CheckedNumeric.h" | 35 #include "platform/wtf/CheckedNumeric.h" |
| 36 | 36 |
| 37 namespace blink { | 37 namespace blink { |
| 38 | 38 |
| 39 void CharacterData::Atomize() { | 39 void CharacterData::Atomize() { |
| 40 data_ = AtomicString(data_); | 40 data_ = AtomicString(data_); |
| 41 } | 41 } |
| 42 | 42 |
| 43 void CharacterData::setData(const String& data) { | 43 void CharacterData::setData(const String& data) { |
| 44 const String& non_null_data = !data.IsNull() ? data : g_empty_string; | 44 const String& non_null_data = !data.IsNull() ? data : g_empty_string; |
| 45 unsigned old_length = length(); | 45 unsigned old_length = length(); |
| (...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 220 DispatchSubtreeModifiedEvent(); | 220 DispatchSubtreeModifiedEvent(); |
| 221 } | 221 } |
| 222 probe::characterDataModified(this); | 222 probe::characterDataModified(this); |
| 223 } | 223 } |
| 224 | 224 |
| 225 int CharacterData::MaxCharacterOffset() const { | 225 int CharacterData::MaxCharacterOffset() const { |
| 226 return static_cast<int>(length()); | 226 return static_cast<int>(length()); |
| 227 } | 227 } |
| 228 | 228 |
| 229 } // namespace blink | 229 } // namespace blink |
| OLD | NEW |