This commit is contained in:
Markus Stange 2008-10-22 18:39:08 +02:00
Родитель 7316c49063
Коммит ce5dbf53bc
1 изменённых файлов: 2 добавлений и 0 удалений

Просмотреть файл

@ -1231,6 +1231,8 @@ nsNativeThemeCocoa::DrawWidgetBackground(nsIRenderingContext* aContext, nsIFrame
nativeWidgetRect.ScaleInverse(gfxFloat(p2a));
nativeDirtyRect.ScaleInverse(gfxFloat(p2a));
nativeWidgetRect.Round();
if (nativeWidgetRect.IsEmpty())
return NS_OK; // Don't attempt to draw invisible widgets.
nsRefPtr<gfxContext> thebesCtx = aContext->ThebesContext();
if (!thebesCtx)