LibWeb: Update top_level_browsing_context() to use navigables

This commit is contained in:
Aliaksandr Kalenik 2023-09-04 15:33:08 +02:00 committed by Andreas Kling
parent fda420875d
commit 6942bdcfce
Notes: sideshowbarker 2024-07-17 08:34:29 +09:00
9 changed files with 43 additions and 30 deletions

View file

@ -155,7 +155,7 @@ Variant<JS::Handle<DOM::Element>, JS::Handle<DOM::Document>, Empty> Intersection
Variant<JS::Handle<DOM::Element>, JS::Handle<DOM::Document>> IntersectionObserver::intersection_root() const
{
if (!m_root.has_value())
return JS::make_handle(global_object().browsing_context()->top_level_browsing_context().active_document());
return JS::make_handle(global_object().browsing_context()->top_level_browsing_context()->active_document());
return m_root.value();
}