зеркало из https://github.com/mozilla/pjs.git
Remove unused content quality stubs. b=111346
This commit is contained in:
Родитель
5a454dfc82
Коммит
37c7ec5d1f
|
@ -2894,29 +2894,6 @@ nsBrowserWindow::DispatchDebugMenu(PRInt32 aID)
|
||||||
result = nsEventStatus_eConsumeNoDefault;
|
result = nsEventStatus_eConsumeNoDefault;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case VIEWER_SHOW_CONTENT_QUALITY:
|
|
||||||
if (nsnull != mDocShell) {
|
|
||||||
nsIPresShell *ps = GetPresShellFor(mDocShell);
|
|
||||||
nsIViewManager *vm = nsnull;
|
|
||||||
PRBool qual;
|
|
||||||
|
|
||||||
if (ps) {
|
|
||||||
ps->GetViewManager(&vm);
|
|
||||||
|
|
||||||
if (vm) {
|
|
||||||
vm->GetShowQuality(qual);
|
|
||||||
vm->ShowQuality(!qual);
|
|
||||||
|
|
||||||
NS_RELEASE(vm);
|
|
||||||
}
|
|
||||||
|
|
||||||
NS_RELEASE(ps);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
result = nsEventStatus_eConsumeNoDefault;
|
|
||||||
break;
|
|
||||||
|
|
||||||
case VIEWER_DEBUGSAVE:
|
case VIEWER_DEBUGSAVE:
|
||||||
DoDebugSave();
|
DoDebugSave();
|
||||||
break;
|
break;
|
||||||
|
|
|
@ -123,7 +123,6 @@ enum
|
||||||
cmd_DebugOutputHTML,
|
cmd_DebugOutputHTML,
|
||||||
cmd_DebugToggleSelection,
|
cmd_DebugToggleSelection,
|
||||||
cmd_DebugRobot,
|
cmd_DebugRobot,
|
||||||
cmd_ShowContentQuality,
|
|
||||||
cmd_GFXWidgetMode,
|
cmd_GFXWidgetMode,
|
||||||
cmd_NativeWidgetMode,
|
cmd_NativeWidgetMode,
|
||||||
cmd_GFXScrollBars,
|
cmd_GFXScrollBars,
|
||||||
|
@ -364,7 +363,6 @@ nsNativeBrowserWindow::DispatchMenuItem(PRInt32 aID)
|
||||||
case cmd_DebugOutputHTML: xpID = VIEWER_DISPLAYHTML; break;
|
case cmd_DebugOutputHTML: xpID = VIEWER_DISPLAYHTML; break;
|
||||||
case cmd_DebugToggleSelection: xpID = VIEWER_TOGGLE_SELECTION; break;
|
case cmd_DebugToggleSelection: xpID = VIEWER_TOGGLE_SELECTION; break;
|
||||||
case cmd_DebugRobot: xpID = VIEWER_DEBUGROBOT; break;
|
case cmd_DebugRobot: xpID = VIEWER_DEBUGROBOT; break;
|
||||||
case cmd_ShowContentQuality: xpID =VIEWER_SHOW_CONTENT_QUALITY; break;
|
|
||||||
#ifdef GC_LEAK_DETECTOR
|
#ifdef GC_LEAK_DETECTOR
|
||||||
case cmd_DumpLeaks:
|
case cmd_DumpLeaks:
|
||||||
{
|
{
|
||||||
|
|
|
@ -238,8 +238,6 @@ struct MenuList_s DemoList[18] =
|
||||||
CreateMenuItem(menu, NULL, 0);
|
CreateMenuItem(menu, NULL, 0);
|
||||||
CreateMenuItem(menu, "Debug Robot", VIEWER_DEBUGROBOT);
|
CreateMenuItem(menu, "Debug Robot", VIEWER_DEBUGROBOT);
|
||||||
CreateMenuItem(menu, NULL, 0);
|
CreateMenuItem(menu, NULL, 0);
|
||||||
CreateMenuItem(menu, "Show Content Quality", VIEWER_SHOW_CONTENT_QUALITY);
|
|
||||||
CreateMenuItem(menu, NULL, 0);
|
|
||||||
submenu=CreateSubMenu(menu, "Style");
|
submenu=CreateSubMenu(menu, "Style");
|
||||||
submenu2=CreateSubMenu(submenu, "Select Style Sheet");
|
submenu2=CreateSubMenu(submenu, "Select Style Sheet");
|
||||||
CreateMenuItem(submenu2, "List Available Sheets", VIEWER_SELECT_STYLE_LIST);
|
CreateMenuItem(submenu2, "List Available Sheets", VIEWER_SELECT_STYLE_LIST);
|
||||||
|
|
|
@ -83,7 +83,6 @@
|
||||||
#define VIEWER_DUMP_STYLE_CONTEXTS 40057
|
#define VIEWER_DUMP_STYLE_CONTEXTS 40057
|
||||||
#define VIEWER_DEBUGROBOT 40058
|
#define VIEWER_DEBUGROBOT 40058
|
||||||
#define VIEWER_DEBUGSAVE 40062
|
#define VIEWER_DEBUGSAVE 40062
|
||||||
#define VIEWER_SHOW_CONTENT_QUALITY 40063
|
|
||||||
#define VIEWER_TOGGLE_SELECTION 40064
|
#define VIEWER_TOGGLE_SELECTION 40064
|
||||||
|
|
||||||
#define VIEWER_TABLE_INSPECTOR 40067
|
#define VIEWER_TABLE_INSPECTOR 40067
|
||||||
|
|
|
@ -130,8 +130,6 @@ GtkItemFactoryEntry menu_items[] =
|
||||||
{ "/Debug/Debug Toggle Selection", nsnull, (GIFC)gtk_ifactory_cb, VIEWER_TOGGLE_SELECTION,nsnull },
|
{ "/Debug/Debug Toggle Selection", nsnull, (GIFC)gtk_ifactory_cb, VIEWER_TOGGLE_SELECTION,nsnull },
|
||||||
{ "/Debug/sep1", nsnull, nsnull, 0, "<Separator>" },
|
{ "/Debug/sep1", nsnull, nsnull, 0, "<Separator>" },
|
||||||
{ "/Debug/Debug Robot", nsnull, (GIFC)gtk_ifactory_cb, VIEWER_DEBUGROBOT, nsnull },
|
{ "/Debug/Debug Robot", nsnull, (GIFC)gtk_ifactory_cb, VIEWER_DEBUGROBOT, nsnull },
|
||||||
{ "/Debug/sep1", nsnull, nsnull, 0, "<Separator>" },
|
|
||||||
{ "/Debug/Show Content Quality", nsnull, (GIFC)gtk_ifactory_cb, VIEWER_SHOW_CONTENT_QUALITY, nsnull },
|
|
||||||
{ "/_Style", nsnull, nsnull, 0, "<Branch>" },
|
{ "/_Style", nsnull, nsnull, 0, "<Branch>" },
|
||||||
{ "/Style/Select _Style Sheet", nsnull, nsnull, 0, "<Branch>" },
|
{ "/Style/Select _Style Sheet", nsnull, nsnull, 0, "<Branch>" },
|
||||||
{ "/Style/Select Style Sheet/List Available Sheets", nsnull, (GIFC)gtk_ifactory_cb, VIEWER_SELECT_STYLE_LIST, nsnull },
|
{ "/Style/Select Style Sheet/List Available Sheets", nsnull, (GIFC)gtk_ifactory_cb, VIEWER_SELECT_STYLE_LIST, nsnull },
|
||||||
|
|
|
@ -127,8 +127,6 @@ GtkItemFactoryEntry menu_items[] =
|
||||||
{ "/Debug/Debug Toggle Selection", nsnull, (GIFC)gtk_ifactory_cb, VIEWER_TOGGLE_SELECTION,nsnull },
|
{ "/Debug/Debug Toggle Selection", nsnull, (GIFC)gtk_ifactory_cb, VIEWER_TOGGLE_SELECTION,nsnull },
|
||||||
{ "/Debug/sep1", nsnull, nsnull, 0, "<Separator>" },
|
{ "/Debug/sep1", nsnull, nsnull, 0, "<Separator>" },
|
||||||
{ "/Debug/Debug Robot", nsnull, (GIFC)gtk_ifactory_cb, VIEWER_DEBUGROBOT, nsnull },
|
{ "/Debug/Debug Robot", nsnull, (GIFC)gtk_ifactory_cb, VIEWER_DEBUGROBOT, nsnull },
|
||||||
{ "/Debug/sep1", nsnull, nsnull, 0, "<Separator>" },
|
|
||||||
{ "/Debug/Show Content Quality", nsnull, (GIFC)gtk_ifactory_cb, VIEWER_SHOW_CONTENT_QUALITY, nsnull },
|
|
||||||
{ "/_Style", nsnull, nsnull, 0, "<Branch>" },
|
{ "/_Style", nsnull, nsnull, 0, "<Branch>" },
|
||||||
{ "/Style/Select _Style Sheet", nsnull, nsnull, 0, "<Branch>" },
|
{ "/Style/Select _Style Sheet", nsnull, nsnull, 0, "<Branch>" },
|
||||||
{ "/Style/Select Style Sheet/List Available Sheets", nsnull, (GIFC)gtk_ifactory_cb, VIEWER_SELECT_STYLE_LIST, nsnull },
|
{ "/Style/Select Style Sheet/List Available Sheets", nsnull, (GIFC)gtk_ifactory_cb, VIEWER_SELECT_STYLE_LIST, nsnull },
|
||||||
|
|
|
@ -128,8 +128,6 @@ VIEWER MENU DISCARDABLE
|
||||||
MENUITEM "Debug Toggle Selection", VIEWER_TOGGLE_SELECTION
|
MENUITEM "Debug Toggle Selection", VIEWER_TOGGLE_SELECTION
|
||||||
MENUITEM SEPARATOR
|
MENUITEM SEPARATOR
|
||||||
MENUITEM "Debu&g Robot", VIEWER_DEBUGROBOT
|
MENUITEM "Debu&g Robot", VIEWER_DEBUGROBOT
|
||||||
MENUITEM SEPARATOR
|
|
||||||
MENUITEM "Show Content Quality", VIEWER_SHOW_CONTENT_QUALITY
|
|
||||||
}
|
}
|
||||||
/*#endif*/
|
/*#endif*/
|
||||||
POPUP "&Style"
|
POPUP "&Style"
|
||||||
|
|
|
@ -111,8 +111,6 @@ MENU IDM_VIEWERBAR
|
||||||
MENUITEM SEPARATOR
|
MENUITEM SEPARATOR
|
||||||
MENUITEM "Debu~g Robot", VIEWER_DEBUGROBOT
|
MENUITEM "Debu~g Robot", VIEWER_DEBUGROBOT
|
||||||
MENUITEM SEPARATOR
|
MENUITEM SEPARATOR
|
||||||
MENUITEM "Show Content Quality", VIEWER_SHOW_CONTENT_QUALITY
|
|
||||||
MENUITEM SEPARATOR
|
|
||||||
}
|
}
|
||||||
|
|
||||||
SUBMENU "~Style", 0
|
SUBMENU "~Style", 0
|
||||||
|
|
Загрузка…
Ссылка в новой задаче