SVGScriptElement.h 700 B

12345678910111213141516171819202122232425262728293031323334
  1. /*
  2. * Copyright (c) 2023, Shannon Booth <shannon@serenityos.org>
  3. *
  4. * SPDX-License-Identifier: BSD-2-Clause
  5. */
  6. #pragma once
  7. #include <LibWeb/SVG/SVGElement.h>
  8. namespace Web::SVG {
  9. // https://www.w3.org/TR/SVG/interact.html#InterfaceSVGScriptElement
  10. class SVGScriptElement : public SVGElement {
  11. WEB_PLATFORM_OBJECT(SVGScriptElement, SVGElement);
  12. public:
  13. protected:
  14. SVGScriptElement(DOM::Document&, DOM::QualifiedName);
  15. virtual void initialize(JS::Realm&) override;
  16. private:
  17. virtual bool is_svg_script_element() const final { return true; }
  18. };
  19. }
  20. namespace Web::DOM {
  21. template<>
  22. inline bool Node::fast_is<SVG::SVGScriptElement>() const { return is_svg_script_element(); }
  23. }