mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-31 11:01:40 +00:00
removing GfxListControlFrame support code
Bug 62960, r=kmcclusk sr=hyatt
This commit is contained in:
parent
8139f62f03
commit
03e5a7ed67
@ -932,22 +932,6 @@ nsBrowserWindow::DispatchMenuItem(PRInt32 aID)
|
||||
}
|
||||
break;
|
||||
|
||||
case VIEWER_GFX_LISTBOX_ON:
|
||||
SetBoolPref("nglayout.widget.gfxlistbox", PR_TRUE);
|
||||
break;
|
||||
|
||||
case VIEWER_GFX_LISTBOX_OFF:
|
||||
SetBoolPref("nglayout.widget.gfxlistbox", PR_FALSE);
|
||||
break;
|
||||
|
||||
case VIEWER_GFX_COMBOBOX_ON:
|
||||
SetBoolPref("nglayout.widget.gfxcombobox", PR_TRUE);
|
||||
break;
|
||||
|
||||
case VIEWER_GFX_COMBOBOX_OFF:
|
||||
SetBoolPref("nglayout.widget.gfxcombobox", PR_FALSE);
|
||||
break;
|
||||
|
||||
#ifdef PURIFY
|
||||
case VIEWER_PURIFY_SHOW_NEW_LEAKS:
|
||||
case VIEWER_PURIFY_SHOW_ALL_LEAKS:
|
||||
|
@ -123,9 +123,24 @@ static NS_DEFINE_IID(kIDOMHTMLSelectElementIID, NS_IDOMHTMLSELECTELEMENT_IID);
|
||||
#define DEFAULT_WIDTH 620
|
||||
#define DEFAULT_HEIGHT 400
|
||||
|
||||
#include <windows.h>
|
||||
|
||||
#define MEM_START MEMORYSTATUS stat1; \
|
||||
MEMORYSTATUS stat2;\
|
||||
GlobalMemoryStatus(&stat1);
|
||||
|
||||
#define MEM_END(_TXT) GlobalMemoryStatus(&stat2); \
|
||||
printf("****\n%s - Bytes allocated by operation Virt: %ld bytes %ld kBytes Phys: %ld bytes\n", (_TXT), \
|
||||
stat1.dwAvailVirtual - stat2.dwAvailVirtual, \
|
||||
(stat1.dwAvailVirtual - stat2.dwAvailVirtual) / 1024, \
|
||||
long(stat1.dwTotalPhys) - long(stat2.dwTotalPhys));
|
||||
|
||||
MEMORYSTATUS stat1;
|
||||
MEMORYSTATUS stat2;
|
||||
|
||||
nsViewerApp::nsViewerApp()
|
||||
{
|
||||
GlobalMemoryStatus(&stat1);
|
||||
NS_INIT_REFCNT();
|
||||
|
||||
char * text = PR_GetEnv("NGLAYOUT_HOME");
|
||||
@ -147,6 +162,7 @@ nsViewerApp::nsViewerApp()
|
||||
nsViewerApp::~nsViewerApp()
|
||||
{
|
||||
Destroy();
|
||||
MEM_END("ViewerApp")
|
||||
}
|
||||
|
||||
NS_IMPL_THREADSAFE_ADDREF(nsViewerApp)
|
||||
|
@ -89,10 +89,6 @@
|
||||
#define VIEWER_USE_DTD_MODE 40079
|
||||
#define VIEWER_STANDARD_MODE 40080
|
||||
#define VIEWER_NAV_QUIRKS_MODE 40081
|
||||
#define VIEWER_GFX_LISTBOX_ON 40082
|
||||
#define VIEWER_GFX_LISTBOX_OFF 40083
|
||||
#define VIEWER_GFX_COMBOBOX_ON 40084
|
||||
#define VIEWER_GFX_COMBOBOX_OFF 40085
|
||||
#define VIEWER_DEBUG_DUMP_REFLOW_TOTS 40086
|
||||
|
||||
#define VIEWER_TOGGLE_PAINT_FLASHING 40200
|
||||
|
@ -136,12 +136,6 @@ GtkItemFactoryEntry menu_items[] =
|
||||
{ "/Style/_Gfx Scrollbars Mode", nsnull, nsnull, 0, "<Branch>" },
|
||||
{ "/Style/Gfx Scrollbars Mode/Gfx On", nsnull, (GIFC)gtk_ifactory_cb, VIEWER_GFX_SCROLLBARS_ON, nsnull },
|
||||
{ "/Style/Gfx Scrollbars Mode/Gfx Off", nsnull, (GIFC)gtk_ifactory_cb, VIEWER_GFX_SCROLLBARS_OFF, nsnull },
|
||||
{ "/Style/Gfx _Combobox Mode", nsnull, nsnull, 0, "<Branch>" },
|
||||
{ "/Style/Gfx Combobox Mode/Gfx On", nsnull, (GIFC)gtk_ifactory_cb, VIEWER_GFX_COMBOBOX_ON, nsnull },
|
||||
{ "/Style/Gfx Combobox Mode/Gfx Off", nsnull, (GIFC)gtk_ifactory_cb, VIEWER_GFX_COMBOBOX_OFF, nsnull },
|
||||
{ "/Style/Gfx _Listbox Mode", nsnull, nsnull, 0, "<Branch>" },
|
||||
{ "/Style/Gfx Listbox Mode/Gfx On", nsnull, (GIFC)gtk_ifactory_cb, VIEWER_GFX_LISTBOX_ON, nsnull },
|
||||
{ "/Style/Gfx Listbox Mode/Gfx Off", nsnull, (GIFC)gtk_ifactory_cb, VIEWER_GFX_LISTBOX_OFF, nsnull },
|
||||
//#endif
|
||||
|
||||
{ "/_URLs", nsnull, nsnull, 0, "<Branch>" },
|
||||
|
@ -141,16 +141,6 @@ VIEWER MENU DISCARDABLE
|
||||
MENUITEM "Gfx Off", VIEWER_GFX_SCROLLBARS_OFF
|
||||
MENUITEM "Gfx On", VIEWER_GFX_SCROLLBARS_ON
|
||||
}
|
||||
POPUP "&Gfx Comboxbox Mode Pref"
|
||||
{
|
||||
MENUITEM "Gfx Off", VIEWER_GFX_COMBOBOX_OFF
|
||||
MENUITEM "Gfx On", VIEWER_GFX_COMBOBOX_ON
|
||||
}
|
||||
POPUP "&Gfx Listbox Mode Pref"
|
||||
{
|
||||
MENUITEM "Gfx Off", VIEWER_GFX_LISTBOX_OFF
|
||||
MENUITEM "Gfx On", VIEWER_GFX_LISTBOX_ON
|
||||
}
|
||||
}
|
||||
POPUP "&URLs"
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user