Skip to content

Truly independent web browser

703 B
Raw Blame
/*
 * Copyright (c) 2020, Matthew Olsson <[email protected]>
 *
 * SPDX-License-Identifier: BSD-2-Clause
 */

#pragma once

#include <LibWeb/SVG/Path.h>
#include <LibWeb/SVG/SVGGeometryElement.h>

namespace Web::SVG {

class SVGPathElement final : public SVGGeometryElement {
    WEB_WRAPPABLE(SVGPathElement, SVGGeometryElement);
    GC_DECLARE_ALLOCATOR(SVGPathElement);

public:
    virtual ~SVGPathElement() override = default;

private:
    virtual bool is_svg_path_element() const final { return true; }

    SVGPathElement(DOM::Document&, DOM::QualifiedName);
};

}

namespace Web::DOM {

template<>
inline bool Node::fast_is<SVG::SVGPathElement>() const { return is_svg_path_element(); }

}