mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-08 09:09:43 +00:00
LibWeb: Replace nested_browsing_context() with content_navigable()
This commit is contained in:
parent
fec4737255
commit
feba8e6218
Notes:
github-actions[bot]
2024-11-03 17:44:43 +00:00
Author: https://github.com/kalenikaliaksandr
Commit: feba8e6218
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2139
3 changed files with 5 additions and 21 deletions
|
@ -325,10 +325,8 @@ void dump_tree(StringBuilder& builder, Layout::Node const& layout_node, bool sho
|
|||
|
||||
if (is<Layout::FrameBox>(box)) {
|
||||
auto const& frame_box = static_cast<Layout::FrameBox const&>(box);
|
||||
if (auto* nested_browsing_context = frame_box.dom_node().nested_browsing_context()) {
|
||||
if (auto* document = nested_browsing_context->active_document()) {
|
||||
builder.appendff(" (url: {})", document->url());
|
||||
}
|
||||
if (auto const* document = frame_box.dom_node().content_document_without_origin_check()) {
|
||||
builder.appendff(" (url: {})", document->url());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue