diff options
Diffstat (limited to 'chromium/third_party/blink/renderer/core/editing/commands/replace_selection_command.h')
-rw-r--r-- | chromium/third_party/blink/renderer/core/editing/commands/replace_selection_command.h | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/chromium/third_party/blink/renderer/core/editing/commands/replace_selection_command.h b/chromium/third_party/blink/renderer/core/editing/commands/replace_selection_command.h index f5b9a7ff6ac..b6f17899d72 100644 --- a/chromium/third_party/blink/renderer/core/editing/commands/replace_selection_command.h +++ b/chromium/third_party/blink/renderer/core/editing/commands/replace_selection_command.h @@ -53,19 +53,20 @@ class CORE_EXPORT ReplaceSelectionCommand final : public CompositeEditCommand { DocumentFragment* fragment, CommandOptions options, InputEvent::InputType input_type = InputEvent::InputType::kNone) { - return new ReplaceSelectionCommand(document, fragment, options, input_type); + return MakeGarbageCollected<ReplaceSelectionCommand>(document, fragment, + options, input_type); } - EphemeralRange InsertedRange() const; - - void Trace(blink::Visitor*) override; - - private: ReplaceSelectionCommand(Document&, DocumentFragment*, CommandOptions, InputEvent::InputType); + EphemeralRange InsertedRange() const; + + void Trace(blink::Visitor*) override; + + private: void DoApply(EditingState*) override; InputEvent::InputType GetInputType() const override; bool IsReplaceSelectionCommand() const override; |