LibWeb: Use GC::Ref<Node> in Range for start/end containers

Let's propagate the GC'ness of it all to the users of Range.
This commit is contained in:
Jelle Raaijmakers 2024-11-30 10:32:32 +01:00 committed by Andreas Kling
commit c87960f8f3
Notes: github-actions[bot] 2024-11-30 16:37:32 +00:00
6 changed files with 92 additions and 99 deletions

View file

@ -286,8 +286,8 @@ void ViewportPaintable::recompute_selection_states(DOM::Range& range)
return TraversalDecision::Continue;
});
auto* start_container = range.start_container();
auto* end_container = range.end_container();
auto start_container = range.start_container();
auto end_container = range.end_container();
// 2. If the selection starts and ends in the same node:
if (start_container == end_container) {