LibWeb/DOM: Move "stop intersection observing..." code into a method

We'll need to call it from elsewhere.

Also add a missing step 5 from where we previously called it.
This commit is contained in:
Sam Atkins 2025-01-07 15:16:07 +00:00 committed by Andreas Kling
commit 97616fa108
Notes: github-actions[bot] 2025-01-11 10:11:52 +00:00
2 changed files with 17 additions and 8 deletions

View file

@ -613,6 +613,7 @@ public:
void run_the_update_intersection_observations_steps(HighResolutionTime::DOMHighResTimeStamp time);
void start_intersection_observing_a_lazy_loading_element(Element&);
void stop_intersection_observing_a_lazy_loading_element(Element&);
void shared_declarative_refresh_steps(StringView input, GC::Ptr<HTML::HTMLMetaElement const> meta_element = nullptr);