|
@@ -5,6 +5,8 @@
|
|
|
*/
|
|
|
|
|
|
#include <AK/StringBuilder.h>
|
|
|
+#include <LibWeb/Bindings/Intrinsics.h>
|
|
|
+#include <LibWeb/Bindings/SVGGElementPrototype.h>
|
|
|
#include <LibWeb/DOM/Document.h>
|
|
|
#include <LibWeb/Layout/SVGGraphicsBox.h>
|
|
|
#include <LibWeb/SVG/SVGGElement.h>
|
|
@@ -18,6 +20,12 @@ SVGGElement::SVGGElement(DOM::Document& document, DOM::QualifiedName qualified_n
|
|
|
{
|
|
|
}
|
|
|
|
|
|
+void SVGGElement::initialize(JS::Realm& realm)
|
|
|
+{
|
|
|
+ Base::initialize(realm);
|
|
|
+ WEB_SET_PROTOTYPE_FOR_INTERFACE(SVGGElement);
|
|
|
+}
|
|
|
+
|
|
|
JS::GCPtr<Layout::Node> SVGGElement::create_layout_node(NonnullRefPtr<CSS::StyleProperties> style)
|
|
|
{
|
|
|
return heap().allocate_without_realm<Layout::SVGGraphicsBox>(document(), *this, move(style));
|