From a4d54522ee4fab8e57800c2a66c37847a63cdf01 Mon Sep 17 00:00:00 2001 From: "aaronleventhal%moonset.net" Date: Fri, 30 Jul 2004 13:02:31 +0000 Subject: [PATCH] Bug 250858. Focus outline appearing on image when image map area clicked. r=bryner, sr=jst --- content/html/content/src/nsHTMLImageElement.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/content/html/content/src/nsHTMLImageElement.cpp b/content/html/content/src/nsHTMLImageElement.cpp index b9f4d2dbf70f..50227f4dbaa4 100644 --- a/content/html/content/src/nsHTMLImageElement.cpp +++ b/content/html/content/src/nsHTMLImageElement.cpp @@ -546,7 +546,9 @@ nsHTMLImageElement::IsFocusable(PRInt32 *aTabIndex) // Use tab index on individual map areas *aTabIndex = (sTabFocusModel & eTabFocus_linksMask)? 0 : -1; } - return PR_TRUE; + // Image map is not focusable itself, but flag as tabbable + // so that image map areas get walked into. + return PR_FALSE; } }