зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1253979, use remote open state for select elements in theme to ensure active state is correct, r=jimm
This commit is contained in:
Родитель
800d25f9d5
Коммит
fc966686cb
|
@ -1351,7 +1351,7 @@ nsNativeThemeWin::GetThemePartAndState(nsIFrame* aFrame, uint8_t aWidgetType,
|
|||
|
||||
if (isHTML) {
|
||||
nsIComboboxControlFrame* ccf = do_QueryFrame(aFrame);
|
||||
isOpen = (ccf && ccf->IsDroppedDown());
|
||||
isOpen = (ccf && ccf->IsDroppedDownOrHasParentPopup());
|
||||
}
|
||||
else
|
||||
isOpen = IsOpenButton(aFrame);
|
||||
|
@ -3367,7 +3367,7 @@ nsresult nsNativeThemeWin::ClassicGetThemePartAndState(nsIFrame* aFrame, uint8_t
|
|||
|
||||
if (isHTML) {
|
||||
nsIComboboxControlFrame* ccf = do_QueryFrame(aFrame);
|
||||
isOpen = (ccf && ccf->IsDroppedDown());
|
||||
isOpen = (ccf && ccf->IsDroppedDownOrHasParentPopup());
|
||||
}
|
||||
else
|
||||
isOpen = IsOpenButton(aFrame);
|
||||
|
|
Загрузка…
Ссылка в новой задаче