KHTML
Go to the documentation of this file.
27#include "RenderSVGInline.h"
35SVGTRefElement::SVGTRefElement(
const QualifiedName& tagName, Document* doc)
36 : SVGTextPositioningElement(tagName, doc)
41SVGTRefElement::~SVGTRefElement()
45void SVGTRefElement::updateReferencedText()
47 Element* target = document()->getElementById(SVGURIReference::getTarget(href()));
49 if (target && target->isSVGElement())
50 textContent =
static_cast<SVGElement*
>(target)->textContent();
52 setTextContent(textContent, ignore);
55void SVGTRefElement::parseMappedAttribute(MappedAttribute* attr)
57 if (SVGURIReference::parseMappedAttribute(attr)) {
58 updateReferencedText();
62 SVGTextPositioningElement::parseMappedAttribute(attr);
65bool SVGTRefElement::childShouldCreateRenderer(Node* child)
const
67 if (child->isTextNode() || child->hasTagName(SVGNames::tspanTag) ||
68 child->hasTagName(SVGNames::trefTag))
73RenderObject* SVGTRefElement::createRenderer(RenderArena* arena, RenderStyle*)
75 return new (arena) RenderSVGInline(
this);
unsigned short ExceptionCode
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.