зеркало из https://github.com/mozilla/gecko-dev.git
When focus is removed and the the CBX is dropped down it rolls it up
r=kmcclusk, sr=buster Bug 64079
This commit is contained in:
Родитель
39ed395c58
Коммит
7a8c672255
|
@ -496,8 +496,15 @@ nsComboboxControlFrame::GetHorizontalInsidePadding(nsIPresContext* aPresContext,
|
|||
void
|
||||
nsComboboxControlFrame::SetFocus(PRBool aOn, PRBool aRepaint)
|
||||
{
|
||||
mFocused = aOn?this:nsnull;
|
||||
// Thiis is needed on a temporary basis. It causes the focus
|
||||
if (aOn) {
|
||||
mFocused = this;
|
||||
} else {
|
||||
mFocused = nsnull;
|
||||
if (mDroppedDown) {
|
||||
ToggleList(mPresContext);
|
||||
}
|
||||
}
|
||||
// This is needed on a temporary basis. It causes the focus
|
||||
// rect to be drawn. This is much faster than ReResolvingStyle
|
||||
// Bug 32920
|
||||
Invalidate(mPresContext, nsRect(0,0,mRect.width,mRect.height), PR_TRUE);
|
||||
|
|
|
@ -496,8 +496,15 @@ nsComboboxControlFrame::GetHorizontalInsidePadding(nsIPresContext* aPresContext,
|
|||
void
|
||||
nsComboboxControlFrame::SetFocus(PRBool aOn, PRBool aRepaint)
|
||||
{
|
||||
mFocused = aOn?this:nsnull;
|
||||
// Thiis is needed on a temporary basis. It causes the focus
|
||||
if (aOn) {
|
||||
mFocused = this;
|
||||
} else {
|
||||
mFocused = nsnull;
|
||||
if (mDroppedDown) {
|
||||
ToggleList(mPresContext);
|
||||
}
|
||||
}
|
||||
// This is needed on a temporary basis. It causes the focus
|
||||
// rect to be drawn. This is much faster than ReResolvingStyle
|
||||
// Bug 32920
|
||||
Invalidate(mPresContext, nsRect(0,0,mRect.width,mRect.height), PR_TRUE);
|
||||
|
|
Загрузка…
Ссылка в новой задаче