#include "core/svg/SVGFontElement.h"
#include "core/svg/SVGPathUtilities.h"
-namespace WebCore {
+namespace blink {
inline SVGGlyphElement::SVGGlyphElement(Document& document)
: SVGElement(SVGNames::glyphTag, document)
{
- ScriptWrappable::init(this);
}
-PassRefPtr<SVGGlyphElement> SVGGlyphElement::create(Document& document)
-{
- return adoptRef(new SVGGlyphElement(document));
-}
+DEFINE_NODE_FACTORY(SVGGlyphElement)
void SVGGlyphElement::invalidateGlyphCache()
{
ContainerNode* fontNode = parentNode();
- if (fontNode && fontNode->hasTagName(SVGNames::fontTag))
- toSVGFontElement(fontNode)->invalidateGlyphCache();
+ if (isSVGFontElement(fontNode))
+ toSVGFontElement(*fontNode).invalidateGlyphCache();
}
void SVGGlyphElement::parseAttribute(const QualifiedName& name, const AtomicString& value)
identifier.verticalAdvanceY = svgFontData->verticalAdvanceY();
}
-static inline float parseSVGGlyphAttribute(const SVGElement* element, const WebCore::QualifiedName& name)
+static inline float parseSVGGlyphAttribute(const SVGElement* element, const blink::QualifiedName& name)
{
AtomicString value(element->fastGetAttribute(name));
if (value.isEmpty())