Index: Source/WebCore/html/HTMLAnchorElement.cpp |
=================================================================== |
--- Source/WebCore/html/HTMLAnchorElement.cpp (revision 143526) |
+++ Source/WebCore/html/HTMLAnchorElement.cpp (working copy) |
@@ -136,9 +136,9 @@ |
if (!imageElement || !imageElement->isServerMap()) |
return; |
+ if (!imageElement->renderer() || !imageElement->renderer()->isRenderImage()) |
+ return; |
RenderImage* renderer = toRenderImage(imageElement->renderer()); |
- if (!renderer) |
- return; |
// FIXME: This should probably pass true for useTransforms. |
FloatPoint absolutePosition = renderer->absoluteToLocal(FloatPoint(static_cast<MouseEvent*>(event)->pageX(), static_cast<MouseEvent*>(event)->pageY())); |