#ifndef SVGFontFaceUriElement_h
#define SVGFontFaceUriElement_h
#if ENABLE(SVG_FONTS)
#include "SVGNames.h"
#include "core/fetch/FontResource.h"
#include "core/fetch/ResourcePtr.h"
#include "core/svg/SVGElement.h"
namespace WebCore {
class CSSFontFaceSrcValue;
class SVGFontFaceUriElement FINAL : public SVGElement, public FontResourceClient {
public:
static PassRefPtr<SVGFontFaceUriElement> create(Document&);
virtual ~SVGFontFaceUriElement();
PassRefPtrWillBeRawPtr<CSSFontFaceSrcValue> srcValue() const;
private:
explicit SVGFontFaceUriElement(Document&);
virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERRIDE;
virtual void childrenChanged(bool changedByParser = false, Node* beforeChange = 0, Node* afterChange = 0, int childCountDelta = 0) OVERRIDE;
virtual InsertionNotificationRequest insertedInto(ContainerNode*) OVERRIDE;
virtual bool rendererIsNeeded(const RenderStyle&) OVERRIDE { return false; }
void loadFont();
ResourcePtr<FontResource> m_resource;
};
}
#endif
#endif