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