SVGScriptElement.cpp 531 B

12345678910111213141516171819202122
  1. /*
  2. * Copyright (c) 2023, Shannon Booth <shannon@serenityos.org>
  3. *
  4. * SPDX-License-Identifier: BSD-2-Clause
  5. */
  6. #include <LibWeb/SVG/SVGScriptElement.h>
  7. namespace Web::SVG {
  8. SVGScriptElement::SVGScriptElement(DOM::Document& document, DOM::QualifiedName qualified_name)
  9. : SVGElement(document, move(qualified_name))
  10. {
  11. }
  12. void SVGScriptElement::initialize(JS::Realm& realm)
  13. {
  14. Base::initialize(realm);
  15. set_prototype(&Bindings::ensure_web_prototype<Bindings::SVGScriptElementPrototype>(realm, "SVGScriptElement"));
  16. }
  17. }