| Index: third_party/WebKit/Source/core/editing/commands/EditCommand.cpp
|
| diff --git a/third_party/WebKit/Source/core/editing/commands/EditCommand.cpp b/third_party/WebKit/Source/core/editing/commands/EditCommand.cpp
|
| index 8ca374741da2815c1f830381cb91356aa97b4f5b..19ce48e48164d935ca99dc07412d4b65ab52a7c4 100644
|
| --- a/third_party/WebKit/Source/core/editing/commands/EditCommand.cpp
|
| +++ b/third_party/WebKit/Source/core/editing/commands/EditCommand.cpp
|
| @@ -112,7 +112,8 @@ bool EditCommand::isRenderedCharacter(const Position& position)
|
| void EditCommand::setParent(CompositeEditCommand* parent)
|
| {
|
| DCHECK((parent && !m_parent) || (!parent && m_parent));
|
| - DCHECK(!parent || !isCompositeEditCommand() || !toCompositeEditCommand(this)->composition());
|
| + // Only allow merging |InsertFromDrop| with previous |DeleteByDrag| after applied.
|
| + DCHECK(!parent || !isCompositeEditCommand() || inputType() == InputEvent::InputType::InsertFromDrop || !toCompositeEditCommand(this)->composition());
|
| m_parent = parent;
|
| if (parent) {
|
| m_startingSelection = parent->m_endingSelection;
|
|
|