if (gDumbBanner && rect.bottom - rect.top > gDumbBannerSize) { rect.top += gDumbBannerSize; }
nsresult ResizeEmbedding(nsIWebBrowserChrome* chrome){    if (!chrome)        return NS_ERROR_FAILURE;        nsCOMPtr<nsIEmbeddingSiteWindow> embeddingSite = do_QueryInterface(chrome);    HWND hWnd;	embeddingSite->GetSiteWindow((void **) & hWnd);        if (!hWnd)        return NS_ERROR_NULL_POINTER;        RECT rect;    GetClientRect(hWnd, &rect);        // Add space for the banner if there is enough to show it    if (gDumbBanner && rect.bottom - rect.top > gDumbBannerSize)    {        rect.top += gDumbBannerSize;    }	// Make sure the browser is visible and sized	nsCOMPtr<nsIWebBrowser> webBrowser;	chrome->GetWebBrowser(getter_AddRefs(webBrowser));    nsCOMPtr<nsIBaseWindow> webBrowserAsWin = do_QueryInterface(webBrowser);	if (webBrowserAsWin)	{        webBrowserAsWin->SetPositionAndSize(rect.left,                                    rect.top,                                    rect.right - rect.left,                                    rect.bottom - rect.top,                                   PR_TRUE);		webBrowserAsWin->SetVisibility(PR_TRUE);	}    return NS_OK;}