Bug 1253979, use remote open state for select elements in theme to ensure active state is correct, r=jimm

This commit is contained in:
Neil Deakin 2016-08-08 08:42:54 -04:00
Родитель 800d25f9d5
Коммит fc966686cb
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -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);