mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-06 16:19:23 +00:00
LibWeb: Update Window::frame_element()
to use navigables
This commit is contained in:
parent
67f5c027fe
commit
0e0936e1ce
Notes:
sideshowbarker
2024-07-17 01:46:43 +09:00
Author: https://github.com/kalenikaliaksandr
Commit: 0e0936e1ce
Pull-request: https://github.com/SerenityOS/serenity/pull/18219
1 changed files with 2 additions and 2 deletions
|
@ -920,14 +920,14 @@ JS::GCPtr<WindowProxy const> Window::parent() const
|
||||||
JS::GCPtr<DOM::Element const> Window::frame_element() const
|
JS::GCPtr<DOM::Element const> Window::frame_element() const
|
||||||
{
|
{
|
||||||
// 1. Let current be this's node navigable.
|
// 1. Let current be this's node navigable.
|
||||||
auto* current = browsing_context();
|
auto current = navigable();
|
||||||
|
|
||||||
// 2. If current is null, then return null.
|
// 2. If current is null, then return null.
|
||||||
if (!current)
|
if (!current)
|
||||||
return {};
|
return {};
|
||||||
|
|
||||||
// 3. Let container be current's container.
|
// 3. Let container be current's container.
|
||||||
auto* container = current->container();
|
auto container = current->container();
|
||||||
|
|
||||||
// 4. If container is null, then return null.
|
// 4. If container is null, then return null.
|
||||||
if (!container)
|
if (!container)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue