summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb/Bindings/WindowObject.cpp
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2021-09-09 13:55:31 +0200
committerAndreas Kling <kling@serenityos.org>2021-09-09 21:25:10 +0200
commit90cdeebfb3589bceb2a269a1725199e384fb4f74 (patch)
tree87187687b6770001542ca663b4655002d2dcd393 /Userland/Libraries/LibWeb/Bindings/WindowObject.cpp
parent8f72729f0e1e555599042305ada284bc9404ed3c (diff)
downloadserenity-90cdeebfb3589bceb2a269a1725199e384fb4f74.zip
LibWeb: Rename DOM::Window::document() => associated_document()
Match the spec nomenclature.
Diffstat (limited to 'Userland/Libraries/LibWeb/Bindings/WindowObject.cpp')
-rw-r--r--Userland/Libraries/LibWeb/Bindings/WindowObject.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/Userland/Libraries/LibWeb/Bindings/WindowObject.cpp b/Userland/Libraries/LibWeb/Bindings/WindowObject.cpp
index 1cf8b287f4..c0cdd3234b 100644
--- a/Userland/Libraries/LibWeb/Bindings/WindowObject.cpp
+++ b/Userland/Libraries/LibWeb/Bindings/WindowObject.cpp
@@ -97,7 +97,7 @@ void WindowObject::visit_edges(Visitor& visitor)
Origin WindowObject::origin() const
{
- return impl().document().origin();
+ return impl().associated_document().origin();
}
static DOM::Window* impl_from(JS::VM& vm, JS::GlobalObject& global_object)
@@ -358,7 +358,7 @@ JS_DEFINE_NATIVE_FUNCTION(WindowObject::top_getter)
if (!impl)
return {};
- auto* this_browsing_context = impl->document().browsing_context();
+ auto* this_browsing_context = impl->associated_document().browsing_context();
if (!this_browsing_context)
return JS::js_null();
@@ -374,7 +374,7 @@ JS_DEFINE_NATIVE_FUNCTION(WindowObject::parent_getter)
if (!impl)
return {};
- auto* this_browsing_context = impl->document().browsing_context();
+ auto* this_browsing_context = impl->associated_document().browsing_context();
if (!this_browsing_context)
return JS::js_null();
@@ -392,7 +392,7 @@ JS_DEFINE_NATIVE_FUNCTION(WindowObject::document_getter)
auto* impl = impl_from(vm, global_object);
if (!impl)
return {};
- return wrap(global_object, impl->document());
+ return wrap(global_object, impl->associated_document());
}
JS_DEFINE_NATIVE_FUNCTION(WindowObject::performance_getter)