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

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

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/ApplyStyleCommand.cpp
diff --git a/third_party/WebKit/Source/core/editing/commands/ApplyStyleCommand.cpp b/third_party/WebKit/Source/core/editing/commands/ApplyStyleCommand.cpp
index 75abe7dd9c3554cf9461c7f7d3b8100d54e1ae08..967cf332390fccf4cf5ace51308f753c4adca2a3 100644
--- a/third_party/WebKit/Source/core/editing/commands/ApplyStyleCommand.cpp
+++ b/third_party/WebKit/Source/core/editing/commands/ApplyStyleCommand.cpp
@@ -125,10 +125,11 @@ static bool offsetIsBeforeLastNodeOffset(int offset, Node* anchorNode) {
}
ApplyStyleCommand::ApplyStyleCommand(Document& document,
+ EditCommandSource source,
const EditingStyle* style,
InputEvent::InputType inputType,
EPropertyLevel propertyLevel)
- : CompositeEditCommand(document),
+ : CompositeEditCommand(document, source),
m_style(style->copy()),
m_inputType(inputType),
m_propertyLevel(propertyLevel),

Powered by Google App Engine
This is Rietveld 408576698