Tweak to previous patch for form controls. r=bryner/sr=blake

This commit is contained in:
hyatt%netscape.com 2002-09-23 03:55:35 +00:00
parent 4c6d410953
commit 645804b150

View File

@ -203,7 +203,7 @@ static void GetNativeRect(const nsRect& aSrc, RECT& aDst)
HANDLE
nsNativeThemeWin::GetTheme(PRUint8 aWidgetType)
{
{
if (!mThemeDLL)
return NULL;
@ -967,13 +967,12 @@ nsNativeThemeWin::ThemeSupportsWidget(nsIPresContext* aPresContext,
nsIFrame* aFrame,
PRUint8 aWidgetType)
{
if (!aPresContext)
return PR_TRUE;
nsCOMPtr<nsIPresShell> shell;
aPresContext->GetShell(getter_AddRefs(shell));
if (!shell->IsThemeSupportEnabled())
return PR_FALSE;
if (aPresContext) {
nsCOMPtr<nsIPresShell> shell;
aPresContext->GetShell(getter_AddRefs(shell));
if (!shell->IsThemeSupportEnabled())
return PR_FALSE;
}
HANDLE theme = NULL;
if (aWidgetType == NS_THEME_CHECKBOX_CONTAINER)