Index: Source/core/layout/HitTestResult.cpp |
diff --git a/Source/core/layout/HitTestResult.cpp b/Source/core/layout/HitTestResult.cpp |
index 8129c2799a98a5728f7103db2df6cbfe20610d6f..ec960feb58bb34f383fc1169cc7dce64637dba43 100644 |
--- a/Source/core/layout/HitTestResult.cpp |
+++ b/Source/core/layout/HitTestResult.cpp |
@@ -35,8 +35,8 @@ |
#include "core/html/HTMLMediaElement.h" |
#include "core/html/HTMLTextAreaElement.h" |
#include "core/html/parser/HTMLParserIdioms.h" |
+#include "core/layout/LayoutImage.h" |
#include "core/page/FrameTree.h" |
-#include "core/rendering/RenderImage.h" |
#include "core/rendering/RenderTextFragment.h" |
#include "core/svg/SVGElement.h" |
#include "platform/scroll/Scrollbar.h" |
@@ -258,7 +258,7 @@ Image* HitTestResult::image() const |
LayoutObject* renderer = m_innerNonSharedNode->renderer(); |
if (renderer && renderer->isImage()) { |
- RenderImage* image = toRenderImage(renderer); |
+ LayoutImage* image = toLayoutImage(renderer); |
if (image->cachedImage() && !image->cachedImage()->errorOccurred()) |
return image->cachedImage()->imageForRenderer(image); |
} |