1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 10:38:11 +00:00

LibWeb: Rename BrowsingContextContainer => NavigableContainer

The "browsing context container" concept in the HTML spec has been
replaced with "navigable container". Renaming this is the first step of
many towards implementing the new world.

Co-authored-by: Aliaksandr Kalenik <kalenik.aliaksandr@gmail.com>
This commit is contained in:
Andreas Kling 2022-12-12 12:20:02 +01:00
parent 0f9f6aef81
commit d8ccc2d54e
17 changed files with 61 additions and 60 deletions

View file

@ -174,11 +174,11 @@ void run_focusing_steps(DOM::Node* new_focus_target, DOM::Node* fallback_target,
new_focus_target = fallback_target;
}
// 3. If new focus target is a browsing context container with non-null nested browsing context,
// 3. If new focus target is a navigable container with non-null nested browsing context,
// then set new focus target to the nested browsing context's active document.
if (is<HTML::BrowsingContextContainer>(*new_focus_target)) {
auto& browsing_context_container = static_cast<HTML::BrowsingContextContainer&>(*new_focus_target);
if (auto* nested_browsing_context = browsing_context_container.nested_browsing_context())
if (is<HTML::NavigableContainer>(*new_focus_target)) {
auto& navigable_container = static_cast<HTML::NavigableContainer&>(*new_focus_target);
if (auto* nested_browsing_context = navigable_container.nested_browsing_context())
new_focus_target = nested_browsing_context->active_document();
}