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

Unified Diff: third_party/WebKit/Source/core/editing/commands/RemoveFormatCommand.cpp

Issue 2151353002: [InputEvent] Replace |EditAction| with |InputType| (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@inputevent-text-styling
Patch Set: Replaced |EditAction| with |InputType| Created 4 years, 5 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.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

Powered by Google App Engine
This is Rietveld 408576698