KHTML
Go to the documentation of this file.
23#include "wtf/Platform.h"
30#include "RenderSVGTSpan.h"
39SVGAltGlyphElement::SVGAltGlyphElement(
const QualifiedName& tagName, Document* doc)
40 : SVGTextPositioningElement(tagName, doc)
44SVGAltGlyphElement::~SVGAltGlyphElement()
48void SVGAltGlyphElement::setGlyphRef(
const DOMString& type, ExceptionCode& ec)
51 ec = DOMException::NO_MODIFICATION_ALLOWED_ERR;
54DOMString SVGAltGlyphElement::glyphRef()
const
56 return getAttribute(SVGNames::glyphRefAttr);
59void SVGAltGlyphElement::setFormat(
const DOMString& type, ExceptionCode& ec)
62 ec = DOMException::NO_MODIFICATION_ALLOWED_ERR;
65DOMString SVGAltGlyphElement::format()
const
67 return getAttribute(SVGNames::formatAttr);
70bool SVGAltGlyphElement::childShouldCreateRenderer(Node* child)
const
72 if (child->isTextNode())
77RenderObject* SVGAltGlyphElement::createRenderer(RenderArena* arena, RenderStyle*)
79 return new (arena) RenderSVGTSpan(
this);
82SVGGlyphElement* SVGAltGlyphElement::glyphElement()
const
84 Element* elt = document()->getElementById(getTarget(getAttribute(XLinkNames::hrefAttr)));
85 if (!elt || !elt->hasTagName(SVGNames::glyphTag))
87 return static_cast<SVGGlyphElement*
>(elt);
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Feb 20 2023 00:00:00 by
doxygen 1.9.6 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.