Bug 276588. Stop layout-debug from always running. r=sicking

This commit is contained in:
roc+%cs.cmu.edu 2005-01-24 00:04:45 +00:00
parent 7933c6fbca
commit f25af34a88

View File

@ -70,6 +70,8 @@ nsLayoutDebugCLH::Handle(nsICommandLine* aCmdLine)
rv = aCmdLine->HandleFlag(NS_LITERAL_STRING("layoutdebug"),
PR_FALSE, &found);
NS_ENSURE_SUCCESS(rv, rv);
if (!found)
return NS_OK;
nsCOMPtr<nsIWindowWatcher> wwatch (do_GetService(NS_WINDOWWATCHER_CONTRACTID));
NS_ENSURE_TRUE(wwatch, NS_ERROR_FAILURE);