| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2005, 2008 Apple Inc. All rights reserved. | 2 * Copyright (C) 2005, 2008 Apple Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
| 8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
| 9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
| 10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| 23 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 23 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 24 */ | 24 */ |
| 25 | 25 |
| 26 #include "core/editing/commands/SplitTextNodeCommand.h" | 26 #include "core/editing/commands/SplitTextNodeCommand.h" |
| 27 | 27 |
| 28 #include "bindings/core/v8/ExceptionState.h" | 28 #include "bindings/core/v8/ExceptionState.h" |
| 29 #include "bindings/core/v8/ExceptionStatePlaceholder.h" | 29 #include "bindings/core/v8/ExceptionStatePlaceholder.h" |
| 30 #include "core/dom/Document.h" | 30 #include "core/dom/Document.h" |
| 31 #include "core/dom/Text.h" | 31 #include "core/dom/Text.h" |
| 32 #include "core/editing/EditingUtilities.h" |
| 32 #include "core/editing/markers/DocumentMarkerController.h" | 33 #include "core/editing/markers/DocumentMarkerController.h" |
| 33 #include "wtf/Assertions.h" | 34 #include "wtf/Assertions.h" |
| 34 | 35 |
| 35 namespace blink { | 36 namespace blink { |
| 36 | 37 |
| 37 SplitTextNodeCommand::SplitTextNodeCommand(Text* text, int offset) | 38 SplitTextNodeCommand::SplitTextNodeCommand(Text* text, int offset) |
| 38 : SimpleEditCommand(text->document()) | 39 : SimpleEditCommand(text->document()) |
| 39 , m_text2(text) | 40 , m_text2(text) |
| 40 , m_offset(offset) | 41 , m_offset(offset) |
| 41 { | 42 { |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 105 } | 106 } |
| 106 | 107 |
| 107 DEFINE_TRACE(SplitTextNodeCommand) | 108 DEFINE_TRACE(SplitTextNodeCommand) |
| 108 { | 109 { |
| 109 visitor->trace(m_text1); | 110 visitor->trace(m_text1); |
| 110 visitor->trace(m_text2); | 111 visitor->trace(m_text2); |
| 111 SimpleEditCommand::trace(visitor); | 112 SimpleEditCommand::trace(visitor); |
| 112 } | 113 } |
| 113 | 114 |
| 114 } // namespace blink | 115 } // namespace blink |
| OLD | NEW |