mirror of
https://github.com/RGBCube/serenity
synced 2025-05-16 19:35:08 +00:00
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.
This commit is contained in:
parent
a2ccb00e1d
commit
f0c5f77f99
122 changed files with 334 additions and 317 deletions
|
@ -16,7 +16,7 @@ namespace Web::HTML {
|
|||
HTMLTableRowElement::HTMLTableRowElement(DOM::Document& document, DOM::QualifiedName qualified_name)
|
||||
: HTMLElement(document, move(qualified_name))
|
||||
{
|
||||
set_prototype(&window().cached_web_prototype("HTMLTableRowElement"));
|
||||
set_prototype(&Bindings::cached_web_prototype(realm(), "HTMLTableRowElement"));
|
||||
}
|
||||
|
||||
HTMLTableRowElement::~HTMLTableRowElement() = default;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue