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 class implements the basic string we use in the DOM.
The Node interface is the primary datatype for the entire Document Object Model.
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Tue Mar 25 2025 00:00:00 by
doxygen 1.14.0 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.