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

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

Issue 2574793002: [Editing] Store |CommandSource| in |CompositeEditCommand| (Closed)
Patch Set: Created 4 years 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 96197db84e0f39de0322b6cb186301996c1788f1..6bcff8230019894d08cdc2cbca1bbbdd53356009 100644
--- a/third_party/WebKit/Source/core/editing/commands/RemoveFormatCommand.cpp
+++ b/third_party/WebKit/Source/core/editing/commands/RemoveFormatCommand.cpp
@@ -40,8 +40,9 @@ namespace blink {
using namespace HTMLNames;
-RemoveFormatCommand::RemoveFormatCommand(Document& document)
- : CompositeEditCommand(document) {}
+RemoveFormatCommand::RemoveFormatCommand(Document& document,
+ CommandSource source)
+ : CompositeEditCommand(document, source) {}
static bool isElementForRemoveFormatCommand(const Element* element) {
DEFINE_STATIC_LOCAL(
@@ -72,7 +73,7 @@ void RemoveFormatCommand::doApply(EditingState* editingState) {
CSSValueTransparent);
applyCommandToComposite(
- ApplyStyleCommand::create(document(), defaultStyle,
+ ApplyStyleCommand::create(document(), commandSource(), defaultStyle,
isElementForRemoveFormatCommand, inputType()),
editingState);
}

Powered by Google App Engine
This is Rietveld 408576698