зеркало из https://github.com/mozilla/gecko-dev.git
Bug 99319, Silence startup printf "Note: styleverifytree is disabled" and friends in the "disabled" case. Patch by Ryan Jones, r+sr=bzbarsky.
This commit is contained in:
Родитель
06afef0f24
Коммит
1df32e680d
|
@ -1284,25 +1284,25 @@ nsIPresShell::GetVerifyReflowEnable()
|
|||
|
||||
if (VERIFY_REFLOW_ON & gVerifyReflowFlags) {
|
||||
gVerifyReflowEnabled = PR_TRUE;
|
||||
}
|
||||
printf("Note: verifyreflow is %sabled",
|
||||
gVerifyReflowEnabled ? "en" : "dis");
|
||||
if (VERIFY_REFLOW_NOISY & gVerifyReflowFlags) {
|
||||
printf(" (noisy)");
|
||||
}
|
||||
if (VERIFY_REFLOW_ALL & gVerifyReflowFlags) {
|
||||
printf(" (all)");
|
||||
}
|
||||
if (VERIFY_REFLOW_DUMP_COMMANDS & gVerifyReflowFlags) {
|
||||
printf(" (show reflow commands)");
|
||||
}
|
||||
if (VERIFY_REFLOW_NOISY_RC & gVerifyReflowFlags) {
|
||||
printf(" (noisy reflow commands)");
|
||||
if (VERIFY_REFLOW_REALLY_NOISY_RC & gVerifyReflowFlags) {
|
||||
printf(" (REALLY noisy reflow commands)");
|
||||
|
||||
printf("Note: verifyreflow is enabled");
|
||||
if (VERIFY_REFLOW_NOISY & gVerifyReflowFlags) {
|
||||
printf(" (noisy)");
|
||||
}
|
||||
if (VERIFY_REFLOW_ALL & gVerifyReflowFlags) {
|
||||
printf(" (all)");
|
||||
}
|
||||
if (VERIFY_REFLOW_DUMP_COMMANDS & gVerifyReflowFlags) {
|
||||
printf(" (show reflow commands)");
|
||||
}
|
||||
if (VERIFY_REFLOW_NOISY_RC & gVerifyReflowFlags) {
|
||||
printf(" (noisy reflow commands)");
|
||||
if (VERIFY_REFLOW_REALLY_NOISY_RC & gVerifyReflowFlags) {
|
||||
printf(" (REALLY noisy reflow commands)");
|
||||
}
|
||||
}
|
||||
printf("\n");
|
||||
}
|
||||
printf("\n");
|
||||
}
|
||||
#endif
|
||||
return gVerifyReflowEnabled;
|
||||
|
|
|
@ -216,8 +216,6 @@ nsIFrameDebug::GetVerifyTreeEnable()
|
|||
if (nsnull == gFrameVerifyTreeLogModuleInfo) {
|
||||
gFrameVerifyTreeLogModuleInfo = PR_NewLogModule("frameverifytree");
|
||||
gFrameVerifyTreeEnable = 0 != gFrameVerifyTreeLogModuleInfo->level;
|
||||
printf("Note: frameverifytree is %sabled\n",
|
||||
gFrameVerifyTreeEnable ? "en" : "dis");
|
||||
}
|
||||
}
|
||||
return gFrameVerifyTreeEnable;
|
||||
|
@ -240,8 +238,6 @@ nsIFrameDebug::GetVerifyStyleTreeEnable()
|
|||
if (nsnull == gStyleVerifyTreeLogModuleInfo) {
|
||||
gStyleVerifyTreeLogModuleInfo = PR_NewLogModule("styleverifytree");
|
||||
gStyleVerifyTreeEnable = 0 != gStyleVerifyTreeLogModuleInfo->level;
|
||||
printf("Note: styleverifytree is %sabled\n",
|
||||
gStyleVerifyTreeEnable ? "en" : "dis");
|
||||
}
|
||||
}
|
||||
return gStyleVerifyTreeEnable;
|
||||
|
|
Загрузка…
Ссылка в новой задаче