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:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user