summaryrefslogtreecommitdiff
path: root/chromium/third_party/blink/renderer/core/editing/commands/delete_from_text_node_command.h
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/third_party/blink/renderer/core/editing/commands/delete_from_text_node_command.h')
-rw-r--r--chromium/third_party/blink/renderer/core/editing/commands/delete_from_text_node_command.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/chromium/third_party/blink/renderer/core/editing/commands/delete_from_text_node_command.h b/chromium/third_party/blink/renderer/core/editing/commands/delete_from_text_node_command.h
index 9ceb5b96d69..f361a8d3011 100644
--- a/chromium/third_party/blink/renderer/core/editing/commands/delete_from_text_node_command.h
+++ b/chromium/third_party/blink/renderer/core/editing/commands/delete_from_text_node_command.h
@@ -37,14 +37,14 @@ class DeleteFromTextNodeCommand final : public SimpleEditCommand {
static DeleteFromTextNodeCommand* Create(Text* node,
unsigned offset,
unsigned count) {
- return new DeleteFromTextNodeCommand(node, offset, count);
+ return MakeGarbageCollected<DeleteFromTextNodeCommand>(node, offset, count);
}
+ DeleteFromTextNodeCommand(Text*, unsigned offset, unsigned count);
+
void Trace(blink::Visitor*) override;
private:
- DeleteFromTextNodeCommand(Text*, unsigned offset, unsigned count);
-
void DoApply(EditingState*) override;
void DoUnapply() override;