mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 418027 - Buttons on Windows should enter hover state when both focused and hovered. r=jimm
This commit is contained in:
parent
6a9518fa1f
commit
b35c373140
@ -515,10 +515,10 @@ nsNativeThemeWin::StandardGetState(nsIFrame* aFrame, PRUint8 aWidgetType,
|
||||
nsEventStates eventState = GetContentState(aFrame, aWidgetType);
|
||||
if (eventState.HasAllStates(NS_EVENT_STATE_HOVER | NS_EVENT_STATE_ACTIVE))
|
||||
return TS_ACTIVE;
|
||||
if (wantFocused && eventState.HasState(NS_EVENT_STATE_FOCUS))
|
||||
return TS_FOCUSED;
|
||||
if (eventState.HasState(NS_EVENT_STATE_HOVER))
|
||||
return TS_HOVER;
|
||||
if (wantFocused && eventState.HasState(NS_EVENT_STATE_FOCUS))
|
||||
return TS_FOCUSED;
|
||||
|
||||
return TS_NORMAL;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user