fix bug 220390 ACCESSKEY incorrectly supported on multiline SELECT tag.

patched by Nian Liu (neo.liu@sun.com).
r=aaronleventhal sr=jst


git-svn-id: svn://10.0.0.236/trunk@157767 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
robin.lu%sun.com
2004-06-11 08:03:16 +00:00
parent 54fa834a2c
commit 100348226b
2 changed files with 4 additions and 12 deletions

View File

@@ -501,9 +501,7 @@ nsListControlFrame::Destroy(nsIPresContext *aPresContext)
mEventListener),
NS_GET_IID(nsIDOMKeyListener));
if (IsInDropDownMode() == PR_FALSE) {
nsFormControlFrame::RegUnRegAccessKey(aPresContext, NS_STATIC_CAST(nsIFrame*, this), PR_FALSE);
}
nsFormControlFrame::RegUnRegAccessKey(aPresContext, NS_STATIC_CAST(nsIFrame*, this), PR_FALSE);
return nsGfxScrollFrame::Destroy(aPresContext);
}
@@ -1058,9 +1056,7 @@ nsListControlFrame::Reflow(nsIPresContext* aPresContext,
// Add the list frame as a child of the form
if (eReflowReason_Initial == aReflowState.reason) {
if (!IsInDropDownMode()) {
nsFormControlFrame::RegUnRegAccessKey(aPresContext, NS_STATIC_CAST(nsIFrame*, this), PR_TRUE);
}
nsFormControlFrame::RegUnRegAccessKey(aPresContext, NS_STATIC_CAST(nsIFrame*, this), PR_TRUE);
}
//--Calculate a width just big enough for the scrollframe to shrink around the

View File

@@ -501,9 +501,7 @@ nsListControlFrame::Destroy(nsIPresContext *aPresContext)
mEventListener),
NS_GET_IID(nsIDOMKeyListener));
if (IsInDropDownMode() == PR_FALSE) {
nsFormControlFrame::RegUnRegAccessKey(aPresContext, NS_STATIC_CAST(nsIFrame*, this), PR_FALSE);
}
nsFormControlFrame::RegUnRegAccessKey(aPresContext, NS_STATIC_CAST(nsIFrame*, this), PR_FALSE);
return nsGfxScrollFrame::Destroy(aPresContext);
}
@@ -1058,9 +1056,7 @@ nsListControlFrame::Reflow(nsIPresContext* aPresContext,
// Add the list frame as a child of the form
if (eReflowReason_Initial == aReflowState.reason) {
if (!IsInDropDownMode()) {
nsFormControlFrame::RegUnRegAccessKey(aPresContext, NS_STATIC_CAST(nsIFrame*, this), PR_TRUE);
}
nsFormControlFrame::RegUnRegAccessKey(aPresContext, NS_STATIC_CAST(nsIFrame*, this), PR_TRUE);
}
//--Calculate a width just big enough for the scrollframe to shrink around the