summaryrefslogtreecommitdiffstats
path: root/WebCore/svg/SVGSwitchElement.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'WebCore/svg/SVGSwitchElement.cpp')
-rw-r--r--WebCore/svg/SVGSwitchElement.cpp13
1 files changed, 7 insertions, 6 deletions
diff --git a/WebCore/svg/SVGSwitchElement.cpp b/WebCore/svg/SVGSwitchElement.cpp
index 5f397af..9b40a02 100644
--- a/WebCore/svg/SVGSwitchElement.cpp
+++ b/WebCore/svg/SVGSwitchElement.cpp
@@ -27,20 +27,21 @@
namespace WebCore {
-SVGSwitchElement::SVGSwitchElement(const QualifiedName& tagName, Document* doc)
- : SVGStyledTransformableElement(tagName, doc)
- , SVGTests()
- , SVGLangSpace()
- , SVGExternalResourcesRequired()
+inline SVGSwitchElement::SVGSwitchElement(const QualifiedName& tagName, Document* document)
+ : SVGStyledTransformableElement(tagName, document)
{
}
-SVGSwitchElement::~SVGSwitchElement()
+PassRefPtr<SVGSwitchElement> SVGSwitchElement::create(const QualifiedName& tagName, Document* document)
{
+ return adoptRef(new SVGSwitchElement(tagName, document));
}
bool SVGSwitchElement::childShouldCreateRenderer(Node* child) const
{
+ // FIXME: This function does not do what the comment below implies it does.
+ // It will create a renderer for any valid SVG element children, not just the first one.
+
for (Node* n = firstChild(); n != 0; n = n->nextSibling()) {
if (n->isSVGElement()) {
SVGElement* element = static_cast<SVGElement*>(n);