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

Unified Diff: third_party/WebKit/Source/core/editing/commands/RemoveFormatCommand.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/RemoveFormatCommand.h
diff --git a/third_party/WebKit/Source/core/editing/commands/RemoveFormatCommand.h b/third_party/WebKit/Source/core/editing/commands/RemoveFormatCommand.h
index 03e8899a120ffbc0450e75d91d61304a96d66cf0..7e541f583b57880b1b5597e0e36e36ed10080c8e 100644
--- a/third_party/WebKit/Source/core/editing/commands/RemoveFormatCommand.h
+++ b/third_party/WebKit/Source/core/editing/commands/RemoveFormatCommand.h
@@ -32,12 +32,13 @@ namespace blink {
class RemoveFormatCommand final : public CompositeEditCommand {
public:
- static RemoveFormatCommand* create(Document& document) {
- return new RemoveFormatCommand(document);
+ static RemoveFormatCommand* create(Document& document,
+ EditCommandSource source) {
+ return new RemoveFormatCommand(document, source);
}
private:
- explicit RemoveFormatCommand(Document&);
+ RemoveFormatCommand(Document&, EditCommandSource);
void doApply(EditingState*) override;
InputEvent::InputType inputType() const;

Powered by Google App Engine
This is Rietveld 408576698