SVGElement.h 595 B

12345678910111213141516171819202122232425262728
  1. /*
  2. * Copyright (c) 2020, Matthew Olsson <mattco@serenityos.org>
  3. *
  4. * SPDX-License-Identifier: BSD-2-Clause
  5. */
  6. #pragma once
  7. #include <LibWeb/DOM/Element.h>
  8. #include <LibWeb/HTML/DOMStringMap.h>
  9. namespace Web::SVG {
  10. class SVGElement : public DOM::Element {
  11. public:
  12. using WrapperType = Bindings::SVGElementWrapper;
  13. virtual bool requires_svg_container() const override { return true; }
  14. NonnullRefPtr<HTML::DOMStringMap> dataset() const { return m_dataset; }
  15. protected:
  16. SVGElement(DOM::Document&, DOM::QualifiedName);
  17. NonnullRefPtr<HTML::DOMStringMap> m_dataset;
  18. };
  19. }