SVGFontFaceUriElement.h [plain text]
#ifndef SVGFontFaceUriElement_h
#define SVGFontFaceUriElement_h
#if ENABLE(SVG_FONTS)
#include "CachedFontClient.h"
#include "CachedResourceHandle.h"
#include "SVGElement.h"
namespace WebCore {
class CSSFontFaceSrcValue;
class SVGFontFaceUriElement final : public SVGElement, public CachedFontClient {
public:
static Ref<SVGFontFaceUriElement> create(const QualifiedName&, Document&);
virtual ~SVGFontFaceUriElement();
Ref<CSSFontFaceSrcValue> srcValue() const;
private:
SVGFontFaceUriElement(const QualifiedName&, Document&);
virtual void parseAttribute(const QualifiedName&, const AtomicString&) override;
virtual void childrenChanged(const ChildChange&) override;
virtual InsertionNotificationRequest insertedInto(ContainerNode&) override;
virtual bool rendererIsNeeded(const RenderStyle&) override { return false; }
void loadFont();
CachedResourceHandle<CachedFont> m_cachedFont;
};
}
#endif // ENABLE(SVG_FONTS)
#endif // SVGFontFaceUriElement_h