| 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..77e8e0ccdd8853347f90626fd84710d35e26b56b 100644
|
| --- a/third_party/WebKit/Source/core/layout/HitTestResult.cpp
|
| +++ b/third_party/WebKit/Source/core/layout/HitTestResult.cpp
|
| @@ -202,13 +202,7 @@ HTMLAreaElement* HitTestResult::imageAreaForImage() const
|
| if (!map)
|
| 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(localPoint(), imageElement->layoutObject());
|
| }
|
|
|
| void HitTestResult::setInnerNode(Node* n)
|
|
|