Index: third_party/WebKit/Source/core/layout/HitTestResult.cpp |
diff --git a/third_party/WebKit/Source/core/layout/HitTestResult.cpp b/third_party/WebKit/Source/core/layout/HitTestResult.cpp |
index fcb509dfa7528bbc325876482f6f8deeb7f7285f..0373ceda197a8255f2568ec18d5e750f752dea18 100644 |
--- a/third_party/WebKit/Source/core/layout/HitTestResult.cpp |
+++ b/third_party/WebKit/Source/core/layout/HitTestResult.cpp |
@@ -317,7 +317,7 @@ Image* HitTestResult::image() const |
if (layoutObject && layoutObject->isImage()) { |
LayoutImage* image = toLayoutImage(layoutObject); |
if (image->cachedImage() && !image->cachedImage()->errorOccurred()) |
- return image->cachedImage()->imageForLayoutObject(image); |
+ return image->cachedImage()->image(); |
} |
return nullptr; |