Index: Source/WebCore/page/EventHandler.cpp |
=================================================================== |
--- Source/WebCore/page/EventHandler.cpp (revision 118878) |
+++ Source/WebCore/page/EventHandler.cpp (working copy) |
@@ -2096,10 +2096,9 @@ |
return 0; |
Element* shadowTreeParentElement = shadowTreeElement->shadowHost(); |
- if (!shadowTreeParentElement) |
+ if (!shadowTreeParentElement || !shadowTreeParentElement->hasTagName(useTag)) |
return 0; |
- ASSERT(shadowTreeParentElement->hasTagName(useTag)); |
return static_cast<SVGUseElement*>(shadowTreeParentElement)->instanceForShadowTreeElement(referenceNode); |
} |
#endif |