24 #include "wtf/Platform.h"
29 #include "RenderSVGTransformableContainer.h"
33 SVGGElement::SVGGElement(
const QualifiedName& tagName, Document* doc)
34 : SVGStyledTransformableElement(tagName, doc)
37 , SVGExternalResourcesRequired()
41 SVGGElement::~SVGGElement()
45 void SVGGElement::parseMappedAttribute(MappedAttribute* attr)
47 if (SVGTests::parseMappedAttribute(attr))
49 if (SVGLangSpace::parseMappedAttribute(attr))
51 if (SVGExternalResourcesRequired::parseMappedAttribute(attr))
54 SVGStyledTransformableElement::parseMappedAttribute(attr);
57 void SVGGElement::svgAttributeChanged(
const QualifiedName& attrName)
59 SVGStyledTransformableElement::svgAttributeChanged(attrName);
64 if (SVGTests::isKnownAttribute(attrName) ||
65 SVGLangSpace::isKnownAttribute(attrName) ||
66 SVGExternalResourcesRequired::isKnownAttribute(attrName) ||
67 SVGStyledTransformableElement::isKnownAttribute(attrName))
68 renderer()->setNeedsLayout(
true);
71 void SVGGElement::childrenChanged(
bool changedByParser, Node* beforeChange, Node* afterChange,
int childCountDelta)
73 SVGStyledTransformableElement::childrenChanged(changedByParser, beforeChange, afterChange, childCountDelta);
76 renderer()->setNeedsLayout(
true);
79 RenderObject* SVGGElement::createRenderer(RenderArena* arena, RenderStyle*)
81 return new (arena) RenderSVGTransformableContainer(
this);