зеркало из https://github.com/mozilla/gecko-dev.git
Add VIEWER_FLASH_PAINT_AREA menu item for debuggin paint events.
This commit is contained in:
Родитель
456e87a0c7
Коммит
563928f869
|
@ -2864,6 +2864,20 @@ nsBrowserWindow::ToggleFrameBorders()
|
|||
}
|
||||
}
|
||||
|
||||
void
|
||||
nsBrowserWindow::ToggleFlashPaintArea()
|
||||
{
|
||||
if (nsnull != mPrefs)
|
||||
{
|
||||
PRBool flashing;
|
||||
mPrefs->GetBoolPref("nglayout.widget.flash_invalidate_areas",&flashing);
|
||||
mPrefs->SetBoolPref("nglayout.widget.flash_invalidate_areas",!flashing);
|
||||
mPrefs->SavePrefFile();
|
||||
|
||||
ForceRefresh();
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
nsBrowserWindow::ShowContentSize()
|
||||
{
|
||||
|
@ -2921,6 +2935,11 @@ nsBrowserWindow::DispatchDebugMenu(PRInt32 aID)
|
|||
result = nsEventStatus_eConsumeNoDefault;
|
||||
break;
|
||||
|
||||
case VIEWER_FLASH_PAINT_AREA:
|
||||
ToggleFlashPaintArea();
|
||||
result = nsEventStatus_eConsumeNoDefault;
|
||||
break;
|
||||
|
||||
case VIEWER_DUMP_CONTENT:
|
||||
DumpContent();
|
||||
result = nsEventStatus_eConsumeNoDefault;
|
||||
|
|
|
@ -200,6 +200,7 @@ public:
|
|||
void DumpStyleSheets(FILE *out = stdout);
|
||||
void DumpStyleContexts(FILE *out = stdout);
|
||||
void ToggleFrameBorders();
|
||||
void ToggleFlashPaintArea();
|
||||
void ShowContentSize();
|
||||
void ShowFrameSize(FILE* out = stdout);
|
||||
void ShowStyleSize();
|
||||
|
|
|
@ -69,6 +69,7 @@
|
|||
#define VIEWER_GFX_WIDGET_MODE 40048
|
||||
#define VIEWER_DISPLAYTEXT 40049
|
||||
#define VIEWER_DISPLAYHTML 40050
|
||||
#define VIEWER_FLASH_PAINT_AREA 40051
|
||||
|
||||
#define VIEWER_SELECT_STYLE_LIST 40500
|
||||
#define VIEWER_SELECT_STYLE_DEFAULT 40501
|
||||
|
|
|
@ -81,6 +81,7 @@ GtkItemFactoryEntry menu_items[] =
|
|||
//#ifdef DEBUG // turning off for now
|
||||
{ "/_Debug", nsnull, nsnull, 0, "<Branch>" },
|
||||
{ "/Debug/_Visual Debugging", nsnull, (GIFC)gtk_ifactory_cb, VIEWER_VISUAL_DEBUGGING,nsnull },
|
||||
{ "/Debug/_Flash Paint Area", nsnull, (GIFC)gtk_ifactory_cb, VIEWER_FLASH_PAINT_AREA,nsnull },
|
||||
{ "/Debug/_Reflow Test", nsnull, (GIFC)gtk_ifactory_cb, VIEWER_REFLOW_TEST, nsnull },
|
||||
{ "/Debug/sep1", nsnull, nsnull, 0, "<Separator>" },
|
||||
{ "/Debug/Dump _Content", nsnull, (GIFC)gtk_ifactory_cb, VIEWER_DUMP_CONTENT, nsnull },
|
||||
|
|
Загрузка…
Ссылка в новой задаче