Index: Source/core/layout/LayoutImage.cpp |
diff --git a/Source/core/layout/LayoutImage.cpp b/Source/core/layout/LayoutImage.cpp |
index 89f997be05fdc7a05f5800ed452943fc16cf154b..d80338ec32d5093f1724a5a98d70abf218110647 100644 |
--- a/Source/core/layout/LayoutImage.cpp |
+++ b/Source/core/layout/LayoutImage.cpp |
@@ -294,10 +294,10 @@ HTMLMapElement* LayoutImage::imageMap() const |
return i ? i->treeScope().getImageMap(i->fastGetAttribute(usemapAttr)) : 0; |
} |
-bool LayoutImage::nodeAtPoint(const HitTestRequest& request, HitTestResult& result, const HitTestLocation& locationInContainer, const LayoutPoint& accumulatedOffset, HitTestAction hitTestAction) |
+bool LayoutImage::nodeAtPoint(HitTestResult& result, const HitTestLocation& locationInContainer, const LayoutPoint& accumulatedOffset, HitTestAction hitTestAction) |
{ |
- HitTestResult tempResult(result.hitTestLocation()); |
- bool inside = LayoutReplaced::nodeAtPoint(request, tempResult, locationInContainer, accumulatedOffset, hitTestAction); |
+ HitTestResult tempResult(result.hitTestRequest(), result.hitTestLocation()); |
+ bool inside = LayoutReplaced::nodeAtPoint(tempResult, locationInContainer, accumulatedOffset, hitTestAction); |
if (tempResult.innerNode() && node()) { |
if (HTMLMapElement* map = imageMap()) { |
@@ -311,8 +311,8 @@ bool LayoutImage::nodeAtPoint(const HitTestRequest& request, HitTestResult& resu |
} |
} |
- if (!inside && request.listBased()) |
- result.append(tempResult, request); |
+ if (!inside && result.hitTestRequest().listBased()) |
+ result.append(tempResult); |
if (inside) |
result = tempResult; |
return inside; |