mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-25 19:25:43 +00:00
Make imagemaps work again. Bug 220519, r+sr=dbaron
This commit is contained in:
parent
f9e026a7da
commit
294d769aed
@ -1426,14 +1426,12 @@ nsGenericHTMLElement::HandleDOMEventForAnchors(nsIPresContext* aPresContext,
|
||||
}
|
||||
}
|
||||
|
||||
if (targetIsArea) {
|
||||
//We are over an area. If our element is not one, then return without
|
||||
if (targetIsArea && !IsArea(this)) {
|
||||
// We are over an area and our element is not one. Return without
|
||||
// running anchor code.
|
||||
if (IsArea(this)) {
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (NS_FAILED(ret))
|
||||
return ret;
|
||||
|
Loading…
Reference in New Issue
Block a user