Make Click() work on image inputs. Bug 96595, patch by basic@mozillanews.org,

r=bzbarsky, sr=jst
This commit is contained in:
bzbarsky%mit.edu 2004-02-26 23:01:45 +00:00
parent 19f99820f6
commit efb5ed5c24

View File

@ -1260,7 +1260,8 @@ nsHTMLInputElement::Click()
mType == NS_FORM_INPUT_CHECKBOX ||
mType == NS_FORM_INPUT_RADIO ||
mType == NS_FORM_INPUT_RESET ||
mType == NS_FORM_INPUT_SUBMIT)) {
mType == NS_FORM_INPUT_SUBMIT ||
mType == NS_FORM_INPUT_IMAGE)) {
nsCOMPtr<nsIDocument> doc = mDocument; // Strong in case the event kills it
nsCOMPtr<nsIPresContext> context;