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

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

Issue 2574793002: [Editing] Store |CommandSource| in |CompositeEditCommand| (Closed)
Patch Set: Created 4 years 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..4c30732c1a0ee973824cb90a69163f25be87d9cc 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,
+ CommandSource 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&, CommandSource, Type);
void doApply(EditingState*) override;
InputEvent::InputType inputType() const override;

Powered by Google App Engine
This is Rietveld 408576698