| Index: Source/core/layout/HitTestResult.cpp
|
| diff --git a/Source/core/layout/HitTestResult.cpp b/Source/core/layout/HitTestResult.cpp
|
| index 639f24b89dc8c85cb0d1bb650769b9b794a44212..7d747bdf0b0b0115d373f756787872e33b6c6783 100644
|
| --- a/Source/core/layout/HitTestResult.cpp
|
| +++ b/Source/core/layout/HitTestResult.cpp
|
| @@ -166,14 +166,14 @@ HTMLAreaElement* HitTestResult::imageAreaForImage() const
|
| }
|
| }
|
|
|
| - if (!imageElement)
|
| + if (!imageElement || !imageElement->layoutObject())
|
| return nullptr;
|
|
|
| HTMLMapElement* map = imageElement->treeScope().getImageMap(imageElement->fastGetAttribute(usemapAttr));
|
| if (!map)
|
| return nullptr;
|
|
|
| - LayoutBox* box = toLayoutBox(layoutObject());
|
| + LayoutBox* box = toLayoutBox(imageElement->layoutObject());
|
| LayoutRect contentBox = box->contentBoxRect();
|
| float scaleFactor = 1 / box->style()->effectiveZoom();
|
| LayoutPoint location = localPoint();
|
|
|