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

Unified Diff: third_party/WebKit/Source/core/editing/commands/DeleteSelectionCommand.h

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/DeleteSelectionCommand.h
diff --git a/third_party/WebKit/Source/core/editing/commands/DeleteSelectionCommand.h b/third_party/WebKit/Source/core/editing/commands/DeleteSelectionCommand.h
index 81f9a4ee4c7860c1c65418456faad0a03916373b..409b6a2752193d821ae1e0209b0c1a7a14c9969b 100644
--- a/third_party/WebKit/Source/core/editing/commands/DeleteSelectionCommand.h
+++ b/third_party/WebKit/Source/core/editing/commands/DeleteSelectionCommand.h
@@ -37,15 +37,17 @@ class CORE_EXPORT DeleteSelectionCommand final : public CompositeEditCommand {
public:
static DeleteSelectionCommand* create(
Document& document,
+ EditCommandSource source,
bool smartDelete = false,
bool mergeBlocksAfterDelete = true,
bool expandForSpecialElements = false,
bool sanitizeMarkup = true,
InputEvent::InputType inputType = InputEvent::InputType::None,
const Position& referenceMovePosition = Position()) {
- return new DeleteSelectionCommand(
- document, smartDelete, mergeBlocksAfterDelete, expandForSpecialElements,
- sanitizeMarkup, inputType, referenceMovePosition);
+ return new DeleteSelectionCommand(document, source, smartDelete,
+ mergeBlocksAfterDelete,
+ expandForSpecialElements, sanitizeMarkup,
+ inputType, referenceMovePosition);
}
static DeleteSelectionCommand* create(
const VisibleSelection& selection,
@@ -63,6 +65,7 @@ class CORE_EXPORT DeleteSelectionCommand final : public CompositeEditCommand {
private:
DeleteSelectionCommand(Document&,
+ EditCommandSource,
bool smartDelete,
bool mergeBlocksAfterDelete,
bool expandForSpecialElements,

Powered by Google App Engine
This is Rietveld 408576698