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

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

Issue 2627103003: [EditCommandSource] Pass source through |CompositeEditCommand| ctor instead of |apply(source)| (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/InsertListCommand.cpp
diff --git a/third_party/WebKit/Source/core/editing/commands/InsertListCommand.cpp b/third_party/WebKit/Source/core/editing/commands/InsertListCommand.cpp
index 8fc2bade0deba66a61dd33b00993fe7cd0b7777b..ac03f94070564862a559fa9d67e307ab5a6437f7 100644
--- a/third_party/WebKit/Source/core/editing/commands/InsertListCommand.cpp
+++ b/third_party/WebKit/Source/core/editing/commands/InsertListCommand.cpp
@@ -119,8 +119,10 @@ bool InsertListCommand::selectionHasListOfType(
return true;
}
-InsertListCommand::InsertListCommand(Document& document, Type type)
- : CompositeEditCommand(document), m_type(type) {}
+InsertListCommand::InsertListCommand(Document& document,
+ EditCommandSource source,
+ Type type)
+ : CompositeEditCommand(document, source), m_type(type) {}
static bool inSameTreeAndOrdered(const Position& shouldBeFormer,
const Position& shouldBeLater) {

Powered by Google App Engine
This is Rietveld 408576698