Make imagemaps work again. Bug 220519, r+sr=dbaron

This commit is contained in:
bzbarsky%mit.edu 2003-09-28 06:28:39 +00:00
parent f9e026a7da
commit 294d769aed

View File

@ -1426,12 +1426,10 @@ nsGenericHTMLElement::HandleDOMEventForAnchors(nsIPresContext* aPresContext,
}
}
if (targetIsArea) {
//We are over an area. If our element is not one, then return without
//running anchor code.
if (IsArea(this)) {
return ret;
}
if (targetIsArea && !IsArea(this)) {
// We are over an area and our element is not one. Return without
// running anchor code.
return ret;
}
}