KHTML
Go to the documentation of this file.
25 #include "CSSValueList.h"
26 #include "CSSFontFaceSrcValue.h"
34 using namespace SVGNames;
36 SVGFontFaceSrcElement::SVGFontFaceSrcElement(
const QualifiedName& tagName, Document* doc)
37 : SVGElement(tagName, doc)
41 PassRefPtr<CSSValueList> SVGFontFaceSrcElement::srcValue()
const
43 RefPtr<CSSValueList>
list =
new CSSValueList;
44 for (Node* child = firstChild(); child; child = child->nextSibling()) {
46 list->
append(static_cast<SVGFontFaceUriElement*>(child)->srcValue());
48 list->append(static_cast<SVGFontFaceNameElement*>(child)->srcValue());
53 void SVGFontFaceSrcElement::childrenChanged(
bool changedByParser, Node* beforeChange, Node* afterChange,
int childCountDelta)
55 SVGElement::childrenChanged(changedByParser, beforeChange, afterChange, childCountDelta);
56 if (parentNode() && parentNode()->hasTagName(
font_faceTag))
57 static_cast<SVGFontFaceElement*
>(parentNode())->rebuildFontFace();
62 #endif // ENABLE(SVG_FONTS)
DOM::QualifiedName font_faceTag
void append(const T &value)
DOM::QualifiedName font_face_uriTag
DOM::QualifiedName font_face_nameTag
QStringList list(const QString &fileClass)
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.