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 55fe073747c4225a0a486479843f51e6bec7f6aa..e180cf2e6471686680a52f35aec4a1dc93527c46 100644 |
--- a/third_party/WebKit/Source/core/layout/HitTestResult.cpp |
+++ b/third_party/WebKit/Source/core/layout/HitTestResult.cpp |
@@ -203,12 +203,11 @@ HTMLAreaElement* HitTestResult::imageAreaForImage() const |
return nullptr; |
LayoutBox* box = toLayoutBox(imageElement->layoutObject()); |
- LayoutRect contentBox = box->contentBoxRect(); |
float scaleFactor = 1 / box->style()->effectiveZoom(); |
LayoutPoint location = localPoint(); |
location.scale(scaleFactor, scaleFactor); |
- return map->areaForPoint(location, contentBox.size()); |
+ return map->areaForPoint(location, box); |
} |
void HitTestResult::setInnerNode(Node* n) |