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 PassRefPtr<SVGFontFaceUriElement> create(const QualifiedName&, Document*);
virtual ~SVGFontFaceUriElement();
PassRefPtr<CSSFontFaceSrcValue> srcValue() const;
private:
SVGFontFaceUriElement(const QualifiedName&, Document*);
virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERRIDE;
virtual void childrenChanged(bool changedByParser = false, Node* beforeChange = 0, Node* afterChange = 0, int childCountDelta = 0);
virtual InsertionNotificationRequest insertedInto(ContainerNode*) OVERRIDE;
void loadFont();
CachedResourceHandle<CachedFont> m_cachedFont;
};
}
#endif // ENABLE(SVG_FONTS)
#endif // SVGFontFaceUriElement_h