зеркало из https://github.com/mozilla/gecko-dev.git
Bug 608984 - Minimize, maximize/restore, close buttons shouldn't have a hover effect. r=jimm
This commit is contained in:
Родитель
8a095c3c38
Коммит
dd2360835d
|
@ -156,11 +156,9 @@ static PRInt32 GetWindowFrameButtonState(nsIFrame *aFrame, nsEventStates eventSt
|
|||
|
||||
static PRInt32 GetClassicWindowFrameButtonState(nsEventStates eventState)
|
||||
{
|
||||
if (eventState.HasState(NS_EVENT_STATE_HOVER)) {
|
||||
if (eventState.HasState(NS_EVENT_STATE_ACTIVE))
|
||||
return DFCS_BUTTONPUSH|DFCS_PUSHED;
|
||||
return DFCS_BUTTONPUSH|DFCS_HOT;
|
||||
}
|
||||
if (eventState.HasState(NS_EVENT_STATE_ACTIVE) &&
|
||||
eventState.HasState(NS_EVENT_STATE_HOVER))
|
||||
return DFCS_BUTTONPUSH|DFCS_PUSHED;
|
||||
return DFCS_BUTTONPUSH;
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче