Index: Source/core/svg/SVGTextContentElement.cpp |
diff --git a/Source/core/svg/SVGTextContentElement.cpp b/Source/core/svg/SVGTextContentElement.cpp |
index c65a2e37559d06c59464e93a6aa0b099518fcbf5..e1cd1cb0be1cc5f2c744e4cb6f2508e549317e0d 100644 |
--- a/Source/core/svg/SVGTextContentElement.cpp |
+++ b/Source/core/svg/SVGTextContentElement.cpp |
@@ -280,11 +280,7 @@ SVGTextContentElement* SVGTextContentElement::elementFromRenderer(RenderObject* |
SVGElement* element = toSVGElement(renderer->node()); |
ASSERT(element); |
- |
- if (!element->isTextContent()) |
- return 0; |
- |
- return toSVGTextContentElement(element); |
+ return isSVGTextContentElement(*element) ? toSVGTextContentElement(element) : 0; |
} |
} |