mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 19:47:44 +00:00
LibWeb: Rename BrowsingContext::document() => active_document()
This better matches the spec nomenclature. Note that we don't yet *retrieve* the active document according to spec.
This commit is contained in:
parent
dd82f68326
commit
84fcf879f9
10 changed files with 69 additions and 69 deletions
|
@ -362,8 +362,8 @@ JS_DEFINE_NATIVE_FUNCTION(WindowObject::top_getter)
|
|||
if (!this_browsing_context)
|
||||
return JS::js_null();
|
||||
|
||||
VERIFY(this_browsing_context->top_level_browsing_context().document());
|
||||
auto& top_window = this_browsing_context->top_level_browsing_context().document()->window();
|
||||
VERIFY(this_browsing_context->top_level_browsing_context().active_document());
|
||||
auto& top_window = this_browsing_context->top_level_browsing_context().active_document()->window();
|
||||
return top_window.wrapper();
|
||||
}
|
||||
|
||||
|
@ -379,8 +379,8 @@ JS_DEFINE_NATIVE_FUNCTION(WindowObject::parent_getter)
|
|||
return JS::js_null();
|
||||
|
||||
if (this_browsing_context->parent()) {
|
||||
VERIFY(this_browsing_context->parent()->document());
|
||||
auto& parent_window = this_browsing_context->parent()->document()->window();
|
||||
VERIFY(this_browsing_context->parent()->active_document());
|
||||
auto& parent_window = this_browsing_context->parent()->active_document()->window();
|
||||
return parent_window.wrapper();
|
||||
}
|
||||
VERIFY(this_browsing_context == &this_browsing_context->top_level_browsing_context());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue