Index: WebCore/svg/SVGElementInstance.cpp |
=================================================================== |
--- WebCore/svg/SVGElementInstance.cpp (revision 75429) |
+++ WebCore/svg/SVGElementInstance.cpp (working copy) |
@@ -103,7 +103,8 @@ |
const HashSet<SVGElementInstance*>::const_iterator end = set.end(); |
for (HashSet<SVGElementInstance*>::const_iterator it = set.begin(); it != end; ++it) { |
ASSERT((*it)->correspondingElement() == element); |
- (*it)->correspondingUseElement()->invalidateShadowTree(); |
+ if (SVGUseElement* element = (*it)->correspondingUseElement()) |
+ element->invalidateShadowTree(); |
} |
// Be sure to rebuild use trees, if needed |