Bug 73547: Don't create child frames for an nsHTMLFrameOuterFrame, even via document.write. r=pavlov@netscape.com, sr=jst@netscape.com

This commit is contained in:
pollmann%netscape.com 2001-04-11 07:33:22 +00:00
parent 20c8360306
commit 11c364d141
2 changed files with 6 additions and 2 deletions

View File

@ -8080,7 +8080,9 @@ nsCSSFrameConstructor::ContentAppended(nsIPresContext* aPresContext,
}
}
}
else {
// Don't create child frames for iframes/frames, they should not
// display any content that they contain.
else if (nsLayoutAtoms::htmlFrameOuterFrame != frameType.get()) {
// Construct a child frame (that does not have a table as parent)
ConstructFrame(shell, aPresContext, state, childContent, parentFrame, frameItems);
}

View File

@ -8080,7 +8080,9 @@ nsCSSFrameConstructor::ContentAppended(nsIPresContext* aPresContext,
}
}
}
else {
// Don't create child frames for iframes/frames, they should not
// display any content that they contain.
else if (nsLayoutAtoms::htmlFrameOuterFrame != frameType.get()) {
// Construct a child frame (that does not have a table as parent)
ConstructFrame(shell, aPresContext, state, childContent, parentFrame, frameItems);
}