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

Unified Diff: third_party/WebKit/Source/core/editing/commands/IndentOutdentCommand.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/IndentOutdentCommand.h
diff --git a/third_party/WebKit/Source/core/editing/commands/IndentOutdentCommand.h b/third_party/WebKit/Source/core/editing/commands/IndentOutdentCommand.h
index 12973b113c6dba875b669b7f1acd7852bd32f3a1..92d44fc2a02a5bea2d15c85d8f6ea8f64bb733ae 100644
--- a/third_party/WebKit/Source/core/editing/commands/IndentOutdentCommand.h
+++ b/third_party/WebKit/Source/core/editing/commands/IndentOutdentCommand.h
@@ -33,14 +33,16 @@ namespace blink {
class CORE_EXPORT IndentOutdentCommand final : public ApplyBlockElementCommand {
public:
enum EIndentType { Indent, Outdent };
- static IndentOutdentCommand* create(Document& document, EIndentType type) {
- return new IndentOutdentCommand(document, type);
+ static IndentOutdentCommand* create(Document& document,
+ EditCommandSource source,
+ EIndentType type) {
+ return new IndentOutdentCommand(document, source, type);
}
bool preservesTypingStyle() const override { return true; }
private:
- IndentOutdentCommand(Document&, EIndentType);
+ IndentOutdentCommand(Document&, EditCommandSource, EIndentType);
InputEvent::InputType inputType() const override;

Powered by Google App Engine
This is Rietveld 408576698