LibWeb: Make block_extend_a_range() take a GC::Ref for the range

This makes it more consistent with the other signatures.
This commit is contained in:
Jelle Raaijmakers 2025-01-07 12:52:15 +01:00 committed by Andreas Kling
commit bd2488a468
Notes: github-actions[bot] 2025-01-10 22:39:36 +00:00
2 changed files with 7 additions and 7 deletions

View file

@ -1,5 +1,5 @@
/*
* Copyright (c) 2024, Jelle Raaijmakers <jelle@ladybird.org>
* Copyright (c) 2024-2025, Jelle Raaijmakers <jelle@ladybird.org>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
@ -31,7 +31,7 @@ using Selection::Selection;
// Below algorithms are specified here:
// https://w3c.github.io/editing/docs/execCommand/#assorted-common-algorithms
GC::Ref<DOM::Range> block_extend_a_range(DOM::Range&);
GC::Ref<DOM::Range> block_extend_a_range(GC::Ref<DOM::Range>);
GC::Ptr<DOM::Node> block_node_of_node(GC::Ref<DOM::Node>);
String canonical_space_sequence(u32 length, bool non_breaking_start, bool non_breaking_end);
void canonicalize_whitespace(DOM::BoundaryPoint, bool fix_collapsed_space = true);