mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-03-02 06:22:20 +00:00
Tweak to previous patch for form controls. r=bryner/sr=blake
This commit is contained in:
parent
4c6d410953
commit
645804b150
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user