
These classes only needed Window to get at its realm. Pass a realm directly to construct HTML classes.
19 lines
491 B
C++
19 lines
491 B
C++
/*
|
|
* Copyright (c) 2018-2020, Andreas Kling <kling@serenityos.org>
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#include <LibWeb/HTML/HTMLHeadElement.h>
|
|
#include <LibWeb/HTML/Window.h>
|
|
|
|
namespace Web::HTML {
|
|
|
|
HTMLHeadElement::HTMLHeadElement(DOM::Document& document, DOM::QualifiedName qualified_name)
|
|
: HTMLElement(document, move(qualified_name))
|
|
{
|
|
set_prototype(&Bindings::cached_web_prototype(realm(), "HTMLHeadElement"));
|
|
}
|
|
|
|
HTMLHeadElement::~HTMLHeadElement() = default;
|
|
}
|