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

Unified Diff: third_party/WebKit/Source/core/editing/commands/FormatBlockCommand.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/FormatBlockCommand.cpp
diff --git a/third_party/WebKit/Source/core/editing/commands/FormatBlockCommand.cpp b/third_party/WebKit/Source/core/editing/commands/FormatBlockCommand.cpp
index 44442099edb41aee29f75bb55e3d68f0f039a3c0..e6e28eddb68aad9de70f6ce242bb0e116dded5c1 100644
--- a/third_party/WebKit/Source/core/editing/commands/FormatBlockCommand.cpp
+++ b/third_party/WebKit/Source/core/editing/commands/FormatBlockCommand.cpp
@@ -131,6 +131,11 @@ Element* FormatBlockCommand::elementForFormatBlockCommand(Range* range)
return commonAncestor->isElementNode() ? toElement(commonAncestor) : 0;
}
+InputEvent::InputType FormatBlockCommand::inputType() const
+{
+ return InputEvent::InputType::FormatBlock;
+}
+
bool isElementForFormatBlock(const QualifiedName& tagName)
{
DEFINE_STATIC_LOCAL(HashSet<QualifiedName>, blockTags, ({

Powered by Google App Engine
This is Rietveld 408576698