mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-28 12:18:25 +00:00
LibWeb: Update top_level_browsing_context() to use navigables
This commit is contained in:
committed by
Andreas Kling
parent
fda420875d
commit
6942bdcfce
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user