mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-09 11:25:00 +00:00
Bug 276588. Stop layout-debug from always running. r=sicking
This commit is contained in:
parent
7933c6fbca
commit
f25af34a88
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user