diff options
author | Andrew Kaster <akaster@serenityos.org> | 2022-09-25 16:38:21 -0600 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2022-10-01 21:05:32 +0100 |
commit | f0c5f77f99801441db1d8e99c14dae2ab1357b47 (patch) | |
tree | 4c96ecfef6414f247421a8abf52168592fd0ab92 /Userland/Libraries/LibWeb/HTML/HTMLUnknownElement.cpp | |
parent | a2ccb00e1da76b9b80fe1a804b5cbf87af91770f (diff) | |
download | serenity-f0c5f77f99801441db1d8e99c14dae2ab1357b47.zip |
LibWeb: Remove unecessary dependence on Window from HTML classes
These classes only needed Window to get at its realm. Pass a realm
directly to construct HTML classes.
Diffstat (limited to 'Userland/Libraries/LibWeb/HTML/HTMLUnknownElement.cpp')
-rw-r--r-- | Userland/Libraries/LibWeb/HTML/HTMLUnknownElement.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibWeb/HTML/HTMLUnknownElement.cpp b/Userland/Libraries/LibWeb/HTML/HTMLUnknownElement.cpp index 1f07432f31..9aa404dfa1 100644 --- a/Userland/Libraries/LibWeb/HTML/HTMLUnknownElement.cpp +++ b/Userland/Libraries/LibWeb/HTML/HTMLUnknownElement.cpp @@ -12,7 +12,7 @@ namespace Web::HTML { HTMLUnknownElement::HTMLUnknownElement(DOM::Document& document, DOM::QualifiedName qualified_name) : HTMLElement(document, move(qualified_name)) { - set_prototype(&window().cached_web_prototype("HTMLUnknownElement")); + set_prototype(&Bindings::cached_web_prototype(realm(), "HTMLUnknownElement")); } HTMLUnknownElement::~HTMLUnknownElement() = default; |