summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb/SVG/SVGElement.h
blob: 0cd75788fe32df5d2769b35e80fb917031134880 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
/*
 * Copyright (c) 2020, Matthew Olsson <mattco@serenityos.org>
 *
 * SPDX-License-Identifier: BSD-2-Clause
 */

#pragma once

#include <LibWeb/DOM/Element.h>
#include <LibWeb/HTML/DOMStringMap.h>

namespace Web::SVG {

class SVGElement : public DOM::Element {
public:
    using WrapperType = Bindings::SVGElementWrapper;

    virtual bool requires_svg_container() const override { return true; }

    NonnullRefPtr<HTML::DOMStringMap> dataset() const { return m_dataset; }

protected:
    SVGElement(DOM::Document&, DOM::QualifiedName);

    NonnullRefPtr<HTML::DOMStringMap> m_dataset;
};

}