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

Unified Diff: third_party/WebKit/Source/core/editing/commands/DeleteSelectionCommand.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/DeleteSelectionCommand.cpp
diff --git a/third_party/WebKit/Source/core/editing/commands/DeleteSelectionCommand.cpp b/third_party/WebKit/Source/core/editing/commands/DeleteSelectionCommand.cpp
index 2f1bc1a12e1d5855f2fac0a965b1c7f7d27a2b54..7e6c7a52e0424f48d7d5e5b7f18eaf9a776bb906 100644
--- a/third_party/WebKit/Source/core/editing/commands/DeleteSelectionCommand.cpp
+++ b/third_party/WebKit/Source/core/editing/commands/DeleteSelectionCommand.cpp
@@ -66,13 +66,14 @@ static bool isTableRowEmpty(Node* row) {
DeleteSelectionCommand::DeleteSelectionCommand(
Document& document,
+ CommandSource source,
bool smartDelete,
bool mergeBlocksAfterDelete,
bool expandForSpecialElements,
bool sanitizeMarkup,
InputEvent::InputType inputType,
const Position& referenceMovePosition)
- : CompositeEditCommand(document),
+ : CompositeEditCommand(document, source),
m_hasSelectionToDelete(false),
m_smartDelete(smartDelete),
m_mergeBlocksAfterDelete(mergeBlocksAfterDelete),
@@ -89,13 +90,14 @@ DeleteSelectionCommand::DeleteSelectionCommand(
m_deleteIntoBlockquoteStyle(nullptr) {}
DeleteSelectionCommand::DeleteSelectionCommand(
+ CommandSource source,
const VisibleSelection& selection,
bool smartDelete,
bool mergeBlocksAfterDelete,
bool expandForSpecialElements,
bool sanitizeMarkup,
InputEvent::InputType inputType)
- : CompositeEditCommand(*selection.start().document()),
+ : CompositeEditCommand(*selection.start().document(), source),
m_hasSelectionToDelete(true),
m_smartDelete(smartDelete),
m_mergeBlocksAfterDelete(mergeBlocksAfterDelete),

Powered by Google App Engine
This is Rietveld 408576698