Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2505)

Unified Diff: third_party/WebKit/Source/core/editing/commands/CompositeEditCommand.h

Issue 2639483002: Add sequence number to undo steps (Closed)
Patch Set: Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/editing/commands/CompositeEditCommand.h
diff --git a/third_party/WebKit/Source/core/editing/commands/CompositeEditCommand.h b/third_party/WebKit/Source/core/editing/commands/CompositeEditCommand.h
index 24d67a7746c024858645e740496c0378033f37c8..7a522abc0ba3aeb1cf6ed46a0ae1135a06316e6f 100644
--- a/third_party/WebKit/Source/core/editing/commands/CompositeEditCommand.h
+++ b/third_party/WebKit/Source/core/editing/commands/CompositeEditCommand.h
@@ -55,6 +55,9 @@ class EditCommandComposition final : public UndoStep {
void unapply() override;
void reapply() override;
InputEvent::InputType inputType() const override;
+ int sequence() const override;
+ void setSequence(int) override;
+
void append(SimpleEditCommand*);
void append(EditCommandComposition*);
@@ -86,6 +89,7 @@ class EditCommandComposition final : public UndoStep {
Member<Element> m_startingRootEditableElement;
Member<Element> m_endingRootEditableElement;
InputEvent::InputType m_inputType;
+ int m_sequence;
};
class CORE_EXPORT CompositeEditCommand : public EditCommand {

Powered by Google App Engine
This is Rietveld 408576698