Index: Source/WebCore/svg/SVGTRefElement.cpp |
=================================================================== |
--- Source/WebCore/svg/SVGTRefElement.cpp (revision 109355) |
+++ Source/WebCore/svg/SVGTRefElement.cpp (working copy) |
@@ -146,10 +146,8 @@ |
void SVGTRefElement::updateReferencedText() |
{ |
- Element* target = SVGURIReference::targetElementFromIRIString(href(), document()); |
- ASSERT(target); |
String textContent; |
- if (target->parentNode()) |
+ if (Element* target = SVGURIReference::targetElementFromIRIString(href(), document())) |
textContent = target->textContent(); |
ExceptionCode ignore = 0; |
if (!ensureShadowRoot()->firstChild()) |