Index: Source/core/rendering/HitTestResult.cpp |
diff --git a/Source/core/rendering/HitTestResult.cpp b/Source/core/rendering/HitTestResult.cpp |
index 8dc1cfc6aa57ba6daa4ef4962328dd8f98fff4e3..0feaf2437fc351ae3c6e5ce1d80e8ffdd6a20f72 100644 |
--- a/Source/core/rendering/HitTestResult.cpp |
+++ b/Source/core/rendering/HitTestResult.cpp |
@@ -261,7 +261,7 @@ Image* HitTestResult::image() const |
RenderObject* renderer = m_innerNonSharedNode->renderer(); |
if (renderer && renderer->isImage()) { |
- RenderImage* image = static_cast<WebCore::RenderImage*>(renderer); |
+ RenderImage* image = toRenderImage(renderer); |
if (image->cachedImage() && !image->cachedImage()->errorOccurred()) |
return image->cachedImage()->imageForRenderer(image); |
} |