| Index: third_party/WebKit/Source/core/editing/commands/UndoStep.cpp
|
| diff --git a/third_party/WebKit/Source/core/editing/commands/UndoStep.cpp b/third_party/WebKit/Source/core/editing/commands/UndoStep.cpp
|
| index bbc47d2ad5d3750119842c5ce9b93e9867679904..95272c8391d293c24241157e712d90c0d61a0704 100644
|
| --- a/third_party/WebKit/Source/core/editing/commands/UndoStep.cpp
|
| +++ b/third_party/WebKit/Source/core/editing/commands/UndoStep.cpp
|
| @@ -9,6 +9,10 @@
|
|
|
| namespace blink {
|
|
|
| +namespace {
|
| +uint64_t s_currentSequenceNumber = 0;
|
| +}
|
| +
|
| UndoStep* UndoStep::create(Document* document,
|
| const VisibleSelection& startingSelection,
|
| const VisibleSelection& endingSelection,
|
| @@ -25,7 +29,8 @@ UndoStep::UndoStep(Document* document,
|
| m_endingSelection(endingSelection),
|
| m_startingRootEditableElement(startingSelection.rootEditableElement()),
|
| m_endingRootEditableElement(endingSelection.rootEditableElement()),
|
| - m_inputType(inputType) {}
|
| + m_inputType(inputType),
|
| + m_sequenceNumber(++s_currentSequenceNumber) {}
|
|
|
| void UndoStep::unapply() {
|
| DCHECK(m_document);
|
|
|