Bug 11762: Create a webshell for an iframe even if size is 0x0. r=evaughan a=chofmann

This commit is contained in:
pollmann@netscape.com
1999-12-15 00:09:10 +00:00
parent 6f8050cc31
commit f9b4268a0b
2 changed files with 6 additions and 4 deletions

View File

@@ -856,8 +856,9 @@ nsHTMLFrameInnerFrame::Reflow(nsIPresContext* aPresContext,
nsAutoString url;
PRBool hasURL = GetURL(content, url);
// if the size is not 0 and there is a src, create the web shell
if ((aReflowState.availableWidth >= 0) && (aReflowState.availableHeight >= 0) && hasURL) {
// if there is a src, create the web shell
// we do this even if the size is not positive (bug 11762)
if (hasURL) {
if (!mWebShell) {
nsSize maxSize(aReflowState.availableWidth, aReflowState.availableHeight);
rv = CreateWebShell(aPresContext, maxSize);