mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 05:08:13 +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
|
@ -278,9 +278,9 @@ void InProcessWebView::keydown_event(GUI::KeyEvent& event)
|
|||
|
||||
URL InProcessWebView::url() const
|
||||
{
|
||||
if (!page().top_level_browsing_context().document())
|
||||
if (!page().top_level_browsing_context().active_document())
|
||||
return {};
|
||||
return page().top_level_browsing_context().document()->url();
|
||||
return page().top_level_browsing_context().active_document()->url();
|
||||
}
|
||||
|
||||
void InProcessWebView::reload()
|
||||
|
@ -319,22 +319,22 @@ void InProcessWebView::page_did_request_scroll_into_view(const Gfx::IntRect& rec
|
|||
|
||||
void InProcessWebView::load_empty_document()
|
||||
{
|
||||
page().top_level_browsing_context().set_document(nullptr);
|
||||
page().top_level_browsing_context().set_active_document(nullptr);
|
||||
}
|
||||
|
||||
DOM::Document* InProcessWebView::document()
|
||||
{
|
||||
return page().top_level_browsing_context().document();
|
||||
return page().top_level_browsing_context().active_document();
|
||||
}
|
||||
|
||||
const DOM::Document* InProcessWebView::document() const
|
||||
{
|
||||
return page().top_level_browsing_context().document();
|
||||
return page().top_level_browsing_context().active_document();
|
||||
}
|
||||
|
||||
void InProcessWebView::set_document(DOM::Document* document)
|
||||
{
|
||||
page().top_level_browsing_context().set_document(document);
|
||||
page().top_level_browsing_context().set_active_document(document);
|
||||
}
|
||||
|
||||
void InProcessWebView::did_scroll()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue