KHTML
Go to the documentation of this file.
27 #include "RenderSVGInline.h"
35 SVGTRefElement::SVGTRefElement(
const QualifiedName& tagName, Document* doc)
36 : SVGTextPositioningElement(tagName, doc)
41 SVGTRefElement::~SVGTRefElement()
45 void SVGTRefElement::updateReferencedText()
47 Element* target = document()->getElementById(SVGURIReference::getTarget(href()));
49 if (target && target->isSVGElement())
50 textContent = static_cast<SVGElement*>(target)->textContent();
51 ExceptionCode ignore = 0;
52 setTextContent(textContent, ignore);
55 void SVGTRefElement::parseMappedAttribute(MappedAttribute* attr)
57 if (SVGURIReference::parseMappedAttribute(attr)) {
58 updateReferencedText();
62 SVGTextPositioningElement::parseMappedAttribute(attr);
65 bool SVGTRefElement::childShouldCreateRenderer(Node* child)
const
73 RenderObject* SVGTRefElement::createRenderer(RenderArena* arena, RenderStyle*)
75 return new (arena) RenderSVGInline(
this);
DOM::QualifiedName trefTag
DOM::QualifiedName tspanTag
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:26:19 by
doxygen 1.8.7 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.