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

Unified Diff: third_party/WebKit/Source/core/editing/commands/ReplaceSelectionCommand.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/ReplaceSelectionCommand.cpp
diff --git a/third_party/WebKit/Source/core/editing/commands/ReplaceSelectionCommand.cpp b/third_party/WebKit/Source/core/editing/commands/ReplaceSelectionCommand.cpp
index 13c1cbdb9e22ac3f62d0301efcd3138549d45a62..4a95b18ab768b834ff6169fdf85552ea96fea46f 100644
--- a/third_party/WebKit/Source/core/editing/commands/ReplaceSelectionCommand.cpp
+++ b/third_party/WebKit/Source/core/editing/commands/ReplaceSelectionCommand.cpp
@@ -438,10 +438,11 @@ inline void ReplaceSelectionCommand::InsertedNodes::didReplaceNode(
ReplaceSelectionCommand::ReplaceSelectionCommand(
Document& document,
+ EditCommandSource source,
DocumentFragment* fragment,
CommandOptions options,
InputEvent::InputType inputType)
- : CompositeEditCommand(document),
+ : CompositeEditCommand(document, source),
m_selectReplacement(options & SelectReplacement),
m_smartReplace(options & SmartReplace),
m_matchStyle(options & MatchStyle),

Powered by Google App Engine
This is Rietveld 408576698