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

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

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.h
diff --git a/third_party/WebKit/Source/core/editing/commands/InsertListCommand.h b/third_party/WebKit/Source/core/editing/commands/InsertListCommand.h
index 14778538ad51741f9de61b95f6e0e71ca361045d..c4c4d005e9b747a441a27511550c5f0e64505eee 100644
--- a/third_party/WebKit/Source/core/editing/commands/InsertListCommand.h
+++ b/third_party/WebKit/Source/core/editing/commands/InsertListCommand.h
@@ -37,8 +37,10 @@ class CORE_EXPORT InsertListCommand final : public CompositeEditCommand {
public:
enum Type { OrderedList, UnorderedList };
- static InsertListCommand* create(Document& document, Type listType) {
- return new InsertListCommand(document, listType);
+ static InsertListCommand* create(Document& document,
+ EditCommandSource source,
+ Type listType) {
+ return new InsertListCommand(document, source, listType);
}
bool preservesTypingStyle() const override { return true; }
@@ -46,7 +48,7 @@ class CORE_EXPORT InsertListCommand final : public CompositeEditCommand {
DECLARE_VIRTUAL_TRACE();
private:
- InsertListCommand(Document&, Type);
+ InsertListCommand(Document&, EditCommandSource, Type);
void doApply(EditingState*) override;
InputEvent::InputType inputType() const override;

Powered by Google App Engine
This is Rietveld 408576698