KHTML
SVGDefinitionSrcElement.cpp
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #include "config.h"
00021
00022 #if ENABLE(SVG_FONTS)
00023 #include "SVGDefinitionSrcElement.h"
00024
00025 #include "SVGFontFaceElement.h"
00026 #include "SVGNames.h"
00027
00028 namespace WebCore {
00029
00030 SVGDefinitionSrcElement::SVGDefinitionSrcElement(const QualifiedName& tagName, Document* doc)
00031 : SVGElement(tagName, doc)
00032 {
00033 }
00034
00035 void SVGDefinitionSrcElement::childrenChanged(bool changedByParser, Node* beforeChange, Node* afterChange, int childCountDelta)
00036 {
00037 SVGElement::childrenChanged(changedByParser, beforeChange, afterChange, childCountDelta);
00038 if (parentNode() && parentNode()->hasTagName(SVGNames::font_faceTag))
00039 static_cast<SVGFontFaceElement*>(parentNode())->rebuildFontFace();
00040 }
00041
00042 }
00043
00044 #endif // ENABLE(SVG_FONTS)
00045