mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-29 07:42:04 +00:00
b=420381, Vista content area dropdowns often don't show dropdown arrow (bandaid); r+sr=roc, a=beltzner
This commit is contained in:
parent
cf4d603da9
commit
34db57e88c
@ -1563,6 +1563,14 @@ nsNativeThemeWin::GetWidgetOverflow(nsIDeviceContext* aContext,
|
||||
PRUint8 aWidgetType,
|
||||
nsRect* aResult)
|
||||
{
|
||||
/* This is disabled for now, because it causes invalidation problems --
|
||||
* see bug 402381. The effect of not updating the overflow area is that
|
||||
* for dropdown buttons in content areas, there is a 1px border on 3 sides
|
||||
* where, if invalidated, the dropdown control probably won't be repainted.
|
||||
* This is fairly minor, as by default there is nothing in that area, and
|
||||
* a border only shows up if the widget is being hovered.
|
||||
*/
|
||||
#if 0
|
||||
if (mIsVistaOrLater) {
|
||||
/* We explicitly draw dropdown buttons in HTML content 1px bigger
|
||||
* up, right, and bottom so that they overlap the dropdown's border
|
||||
@ -1580,6 +1588,7 @@ nsNativeThemeWin::GetWidgetOverflow(nsIDeviceContext* aContext,
|
||||
return PR_TRUE;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
return PR_FALSE;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user