#pragma once
#include "SVGElement.h"
#include "SVGNames.h"
#include "SVGURIReference.h"
namespace WebCore {
class SVGPathElement;
class SVGMPathElement final : public SVGElement, public SVGURIReference {
WTF_MAKE_ISO_ALLOCATED(SVGMPathElement);
public:
static Ref<SVGMPathElement> create(const QualifiedName&, Document&);
virtual ~SVGMPathElement();
RefPtr<SVGPathElement> pathElement();
void targetPathChanged();
private:
SVGMPathElement(const QualifiedName&, Document&);
using PropertyRegistry = SVGPropertyOwnerRegistry<SVGMPathElement, SVGElement, SVGURIReference>;
const SVGPropertyRegistry& propertyRegistry() const final { return m_propertyRegistry; }
void parseAttribute(const QualifiedName&, const AtomString&) final;
void svgAttributeChanged(const QualifiedName&) final;
void buildPendingResource() final;
void clearResourceReferences();
InsertedIntoAncestorResult insertedIntoAncestor(InsertionType, ContainerNode&) final;
void removedFromAncestor(RemovalType, ContainerNode&) final;
bool rendererIsNeeded(const RenderStyle&) final { return false; }
void didFinishInsertingNode() final;
void notifyParentOfPathChange(ContainerNode*);
PropertyRegistry m_propertyRegistry { *this };
};
}