void write(TextStream &ts, const RenderSVGContainer &container, int indent) { writeIndent(ts, indent); ts << container.renderName(); if (container.element()) { DeprecatedString tagName = getTagName(container.element()); if (!tagName.isEmpty()) ts << " {" << tagName << "}"; } ts << container << endl; for (RenderObject *child = container.firstChild(); child != NULL; child = child->nextSibling()) write(ts, *child, indent + 1); }
void write(TextStream& ts, const RenderSVGContainer& container, int indent) { writeIndent(ts, indent); ts << container.renderName(); if (container.element()) { String tagName = getTagName(static_cast<SVGStyledElement*>(container.element())); if (!tagName.isEmpty()) ts << " {" << tagName << "}"; } ts << container << "\n"; for (RenderObject* child = container.firstChild(); child; child = child->nextSibling()) write(ts, *child, indent + 1); }