Index: third_party/WebKit/Source/core/editing/commands/DeleteSelectionCommand.h |
diff --git a/third_party/WebKit/Source/core/editing/commands/DeleteSelectionCommand.h b/third_party/WebKit/Source/core/editing/commands/DeleteSelectionCommand.h |
index d2f82d5a20adc1f2b2e3b034ddaba949c9efd636..a4f37602ab7957ceba81b1f69c29f6e556ec48a1 100644 |
--- a/third_party/WebKit/Source/core/editing/commands/DeleteSelectionCommand.h |
+++ b/third_party/WebKit/Source/core/editing/commands/DeleteSelectionCommand.h |
@@ -35,9 +35,9 @@ class HTMLTableRowElement; |
class DeleteSelectionCommand final : public CompositeEditCommand { |
public: |
- static DeleteSelectionCommand* create(Document& document, bool smartDelete = false, bool mergeBlocksAfterDelete = true, bool expandForSpecialElements = false, bool sanitizeMarkup = true, InputEvent::InputType inputType = InputEvent::InputType::None) |
+ static DeleteSelectionCommand* create(Document& document, bool smartDelete = false, bool mergeBlocksAfterDelete = true, bool expandForSpecialElements = false, bool sanitizeMarkup = true, InputEvent::InputType inputType = InputEvent::InputType::None, const Position& referenceMovePosition = Position()) |
{ |
- return new DeleteSelectionCommand(document, smartDelete, mergeBlocksAfterDelete, expandForSpecialElements, sanitizeMarkup, inputType); |
+ return new DeleteSelectionCommand(document, smartDelete, mergeBlocksAfterDelete, expandForSpecialElements, sanitizeMarkup, inputType, referenceMovePosition); |
} |
static DeleteSelectionCommand* create(const VisibleSelection& selection, bool smartDelete = false, bool mergeBlocksAfterDelete = true, bool expandForSpecialElements = false, bool sanitizeMarkup = true, InputEvent::InputType inputType = InputEvent::InputType::None) |
{ |
@@ -47,7 +47,7 @@ public: |
DECLARE_VIRTUAL_TRACE(); |
private: |
- DeleteSelectionCommand(Document&, bool smartDelete, bool mergeBlocksAfterDelete, bool expandForSpecialElements, bool santizeMarkup, InputEvent::InputType); |
+ DeleteSelectionCommand(Document&, bool smartDelete, bool mergeBlocksAfterDelete, bool expandForSpecialElements, bool santizeMarkup, InputEvent::InputType, const Position& referenceMovePosition); |
DeleteSelectionCommand(const VisibleSelection&, bool smartDelete, bool mergeBlocksAfterDelete, bool expandForSpecialElements, bool sanitizeMarkup, InputEvent::InputType); |
void doApply(EditingState*) override; |
@@ -90,6 +90,7 @@ private: |
Position m_endingPosition; |
Position m_leadingWhitespace; |
Position m_trailingWhitespace; |
+ Position m_referenceMovePosition; |
Member<Node> m_startBlock; |
Member<Node> m_endBlock; |
Member<EditingStyle> m_typingStyle; |