Chromium Code Reviews| Index: third_party/WebKit/Source/core/editing/commands/ReplaceSelectionCommand.h |
| diff --git a/third_party/WebKit/Source/core/editing/commands/ReplaceSelectionCommand.h b/third_party/WebKit/Source/core/editing/commands/ReplaceSelectionCommand.h |
| index 5cbf2914040b2a88adea4e166a6a691af71a8ff4..9ac732019ebb29dd4ee312f7becfea0299fe5db4 100644 |
| --- a/third_party/WebKit/Source/core/editing/commands/ReplaceSelectionCommand.h |
| +++ b/third_party/WebKit/Source/core/editing/commands/ReplaceSelectionCommand.h |
| @@ -52,6 +52,8 @@ public: |
| return adoptRefWillBeNoop(new ReplaceSelectionCommand(document, fragment, options, action)); |
| } |
| + EphemeralRange insertedRange() { return EphemeralRange(m_startOfInsertedRange, m_endOfInsertedRange); } |
|
yosin_UTC9
2016/01/22 09:56:55
nit: This member function should be marked with |c
Xiaocheng
2016/01/22 10:24:37
Done.
|
| + |
| DECLARE_VIRTUAL_TRACE(); |
| private: |
| @@ -118,6 +120,9 @@ private: |
| EditAction m_editAction; |
| bool m_sanitizeFragment; |
| bool m_shouldMergeEnd; |
| + |
| + Position m_startOfInsertedRange; |
| + Position m_endOfInsertedRange; |
| }; |
| DEFINE_TYPE_CASTS(ReplaceSelectionCommand, CompositeEditCommand, command, command->isReplaceSelectionCommand(), command.isReplaceSelectionCommand()); |