зеркало из https://github.com/mozilla/pjs.git
Bug 236484: check for the attributes "focused" and "_moz-menuactive" in WidgetStateChanged. r+sr=bz
This commit is contained in:
Родитель
84a99eaf6c
Коммит
2cf88c0cec
|
@ -622,7 +622,8 @@ nsNativeThemeGTK::WidgetStateChanged(nsIFrame* aFrame, PRUint8 aWidgetType,
|
|||
// disabled, checked, dlgtype, default, etc.
|
||||
*aShouldRepaint = PR_FALSE;
|
||||
if (aAttribute == mDisabledAtom || aAttribute == mCheckedAtom ||
|
||||
aAttribute == mSelectedAtom)
|
||||
aAttribute == mSelectedAtom || aAttribute == mFocusedAtom ||
|
||||
aAttribute == mMenuActiveAtom)
|
||||
*aShouldRepaint = PR_TRUE;
|
||||
}
|
||||
|
||||
|
|
|
@ -44,7 +44,8 @@ menuitem[default="true"] {
|
|||
font-weight: bold;
|
||||
}
|
||||
|
||||
menu[disabled="true"], menuitem[disabled="true"] {
|
||||
menu[disabled="true"],
|
||||
menuitem[disabled="true"] {
|
||||
color: GrayText;
|
||||
}
|
||||
|
||||
|
@ -52,12 +53,12 @@ menubar > menu {
|
|||
padding: 0px 6px 0px 4px;
|
||||
}
|
||||
|
||||
/*
|
||||
menu[_moz-menuactive="true"],
|
||||
menuitem[_moz-menuactive="true"] {
|
||||
/* dummy rule to force repainting when _moz-menuactive changes */
|
||||
border-color: transparent;
|
||||
/* color: HighlightText; should be fg[PRELIGHT] */
|
||||
color: HighlightText; should be fg[PRELIGHT]
|
||||
}
|
||||
*/
|
||||
|
||||
/* ::::: menu/menuitems in menulist popups ::::: */
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче