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,12 +1426,10 @@ nsGenericHTMLElement::HandleDOMEventForAnchors(nsIPresContext* aPresContext,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (targetIsArea) {
|
if (targetIsArea && !IsArea(this)) {
|
||||||
//We are over an area. If our element is not one, then return without
|
// We are over an area and our element is not one. Return without
|
||||||
//running anchor code.
|
// running anchor code.
|
||||||
if (IsArea(this)) {
|
return ret;
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user