Bug 778654 - Make SVG <a> elements focusable by default; r?heycam
MozReview-Commit-ID: 660YSIhSI0s
--- a/dom/svg/SVGAElement.cpp
+++ b/dom/svg/SVGAElement.cpp
@@ -189,16 +189,19 @@ SVGAElement::IsFocusableInternal(int32_t
{
nsCOMPtr<nsIURI> uri;
if (IsLink(getter_AddRefs(uri))) {
if (aTabIndex) {
*aTabIndex = ((sTabFocusModel & eTabFocus_linksMask) == 0 ? -1 : 0);
}
return true;
}
+ if (nsSVGElement::IsFocusableInternal(aTabIndex, aWithMouse)) {
+ return true;
+ }
if (aTabIndex) {
*aTabIndex = -1;
}
return false;
}