Index: third_party/WebKit/Source/core/html/HTMLMapElement.cpp |
diff --git a/third_party/WebKit/Source/core/html/HTMLMapElement.cpp b/third_party/WebKit/Source/core/html/HTMLMapElement.cpp |
index 27533f77e295c20bfddcc65fe6ac89140b941243..985fa43eeebcb2876e0c852bc1286d347eaf02f0 100644 |
--- a/third_party/WebKit/Source/core/html/HTMLMapElement.cpp |
+++ b/third_party/WebKit/Source/core/html/HTMLMapElement.cpp |
@@ -47,13 +47,13 @@ HTMLMapElement::~HTMLMapElement() |
{ |
} |
-HTMLAreaElement* HTMLMapElement::areaForPoint(LayoutPoint location, const LayoutSize& containerSize) |
+HTMLAreaElement* HTMLMapElement::areaForPoint(const LayoutPoint& location, const LayoutObject* containerObject) |
{ |
HTMLAreaElement* defaultArea = nullptr; |
for (HTMLAreaElement& area : Traversal<HTMLAreaElement>::descendantsOf(*this)) { |
if (area.isDefault() && !defaultArea) |
defaultArea = &area; |
- else if (area.pointInArea(location, containerSize)) |
+ else if (area.pointInArea(location, containerObject)) |
return &area; |
} |