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

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

Issue 2642663002: Rename class EditCommandComposition to UndoStep (Closed)
Patch Set: Remove a redundant TODO 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.cpp
diff --git a/third_party/WebKit/Source/core/editing/commands/CompositeEditCommand.cpp b/third_party/WebKit/Source/core/editing/commands/CompositeEditCommand.cpp
index 4f79038db86e058eb80e5fcaa754c2dbfc906968..ce3d8711efe5bb97685619c804c8ba8146e2ddb9 100644
--- a/third_party/WebKit/Source/core/editing/commands/CompositeEditCommand.cpp
+++ b/third_party/WebKit/Source/core/editing/commands/CompositeEditCommand.cpp
@@ -138,13 +138,14 @@ bool CompositeEditCommand::apply() {
return !editingState.isAborted();
}
-EditCommandComposition* CompositeEditCommand::ensureComposition() {
+UndoStep* CompositeEditCommand::ensureComposition() {
CompositeEditCommand* command = this;
while (command && command->parent())
command = command->parent();
- if (!command->m_composition)
- command->m_composition = EditCommandComposition::create(
- &document(), startingSelection(), endingSelection(), inputType());
+ if (!command->m_composition) {
+ command->m_composition = UndoStep::create(&document(), startingSelection(),
+ endingSelection(), inputType());
+ }
return command->m_composition.get();
}

Powered by Google App Engine
This is Rietveld 408576698