1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 11:18:11 +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:
Andreas Kling 2021-09-09 13:14:32 +02:00
parent dd82f68326
commit 84fcf879f9
10 changed files with 69 additions and 69 deletions

View file

@ -35,9 +35,9 @@ void BrowsingContextContainer::inserted()
Origin BrowsingContextContainer::content_origin() const
{
if (!m_nested_browsing_context || !m_nested_browsing_context->document())
if (!m_nested_browsing_context || !m_nested_browsing_context->active_document())
return {};
return m_nested_browsing_context->document()->origin();
return m_nested_browsing_context->active_document()->origin();
}
bool BrowsingContextContainer::may_access_from_origin(const Origin& origin) const
@ -47,7 +47,7 @@ bool BrowsingContextContainer::may_access_from_origin(const Origin& origin) cons
const DOM::Document* BrowsingContextContainer::content_document() const
{
return m_nested_browsing_context ? m_nested_browsing_context->document() : nullptr;
return m_nested_browsing_context ? m_nested_browsing_context->active_document() : nullptr;
}
void BrowsingContextContainer::nested_browsing_context_did_load(Badge<FrameLoader>)