Index: third_party/WebKit/Source/core/editing/commands/RemoveFormatCommand.cpp |
diff --git a/third_party/WebKit/Source/core/editing/commands/RemoveFormatCommand.cpp b/third_party/WebKit/Source/core/editing/commands/RemoveFormatCommand.cpp |
index fb81be68906b6e51f84e65497d52806b33900798..1ed17b6d82236b53b74e12d4cd9952d1f0eae1bc 100644 |
--- a/third_party/WebKit/Source/core/editing/commands/RemoveFormatCommand.cpp |
+++ b/third_party/WebKit/Source/core/editing/commands/RemoveFormatCommand.cpp |
@@ -92,7 +92,12 @@ void RemoveFormatCommand::doApply(EditingState* editingState) |
// FIXME: We shouldn't access style(). |
defaultStyle->style()->setProperty(CSSPropertyBackgroundColor, CSSValueTransparent); |
- applyCommandToComposite(ApplyStyleCommand::create(document(), defaultStyle, isElementForRemoveFormatCommand, editingAction()), editingState); |
+ applyCommandToComposite(ApplyStyleCommand::create(document(), defaultStyle, isElementForRemoveFormatCommand, inputType()), editingState); |
+} |
+ |
+InputEvent::InputType RemoveFormatCommand::inputType() const |
+{ |
+ return InputEvent::InputType::RemoveFormat; |
} |
} // namespace blink |