Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(401)

Unified Diff: third_party/WebKit/Source/core/html/HTMLMapElement.cpp

Issue 1912863002: Fix image map focus ring painting (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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;
}
« no previous file with comments | « third_party/WebKit/Source/core/html/HTMLMapElement.h ('k') | third_party/WebKit/Source/core/layout/HitTestResult.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698