Bug 82073. Wallpaper over the crash until bryner can look at this.

git-svn-id: svn://10.0.0.236/trunk@95680 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
waterson%netscape.com
2001-05-22 17:29:47 +00:00
parent aa65972667
commit 1b5bc5e4af

View File

@@ -2498,6 +2498,9 @@ nsDocShell::SetFocus()
is not collapsed. */
nsIFrame* rootFrame;
presShell->GetRootFrame(&rootFrame);
if (!rootFrame)
return NS_ERROR_FAILURE;
nsRect frameRect;
rootFrame->GetRect(frameRect);
if (frameRect.IsEmpty()) {