mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 839029 - Don't repaint default button if disabled or inactive. r=mstange, r=josh
This commit is contained in:
parent
7876915769
commit
aa6fd9f963
@ -2061,7 +2061,8 @@ nsNativeThemeCocoa::DrawWidgetBackground(nsRenderingContext* aContext,
|
||||
|
||||
case NS_THEME_BUTTON:
|
||||
if (IsDefaultButton(aFrame)) {
|
||||
if (!QueueAnimatedContentForRefresh(aFrame->GetContent(), 10)) {
|
||||
if (!IsDisabled(aFrame, eventState) && FrameIsInActiveWindow(aFrame) &&
|
||||
!QueueAnimatedContentForRefresh(aFrame->GetContent(), 10)) {
|
||||
NS_WARNING("Unable to animate button!");
|
||||
}
|
||||
DrawButton(cgContext, kThemePushButton, macRect, true,
|
||||
|
Loading…
Reference in New Issue
Block a user