diff options
Diffstat (limited to 'WebCore/svg/SVGFontFaceUriElement.h')
-rw-r--r-- | WebCore/svg/SVGFontFaceUriElement.h | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/WebCore/svg/SVGFontFaceUriElement.h b/WebCore/svg/SVGFontFaceUriElement.h index cdeb743..1d880e5 100644 --- a/WebCore/svg/SVGFontFaceUriElement.h +++ b/WebCore/svg/SVGFontFaceUriElement.h @@ -21,17 +21,30 @@ #define SVGFontFaceUriElement_h #if ENABLE(SVG_FONTS) +#include "CachedResourceClient.h" +#include "CachedResourceHandle.h" #include "SVGElement.h" namespace WebCore { + class CSSFontFaceSrcValue; - class SVGFontFaceUriElement : public SVGElement { + class CachedFont; + + class SVGFontFaceUriElement : public SVGElement, public CachedResourceClient { public: SVGFontFaceUriElement(const QualifiedName&, Document*); + ~SVGFontFaceUriElement(); PassRefPtr<CSSFontFaceSrcValue> srcValue() const; - + + virtual void parseMappedAttribute(MappedAttribute*); virtual void childrenChanged(bool changedByParser = false, Node* beforeChange = 0, Node* afterChange = 0, int childCountDelta = 0); + virtual void insertedIntoDocument(); + + private: + void loadFont(); + + CachedResourceHandle<CachedFont> m_cachedFont; }; } // namespace WebCore |