Temporary change to make sure we don't wrap floated tables in a BODY frame

This commit is contained in:
troy%netscape.com 1998-12-04 23:51:16 +00:00
parent 54aeeda011
commit e05b04aa92
3 changed files with 9 additions and 6 deletions

View File

@ -1988,11 +1988,12 @@ HTMLStyleSheetImpl::ConstructFrame(nsIPresContext* aPresContext,
if ((NS_STYLE_FLOAT_NONE != display->mFloats) ||
(NS_STYLE_POSITION_ABSOLUTE == position->mPosition)) {
// If it can contain children then wrap it in a BODY frame
// If it can contain children then wrap it in a BODY frame.
// XxX Don't wrap tables...
PRBool isContainer;
aContent->CanContainChildren(isContainer);
if (isContainer) {
if ((NS_STYLE_DISPLAY_TABLE != display->mDisplay) && isContainer) {
// The body wrapper frame gets the original style context
NS_NewBodyFrame(wrapperFrame, NS_BODY_SHRINK_WRAP);
wrapperFrame->Init(*aPresContext, aContent, aParentFrame, styleContext);

View File

@ -1988,11 +1988,12 @@ HTMLStyleSheetImpl::ConstructFrame(nsIPresContext* aPresContext,
if ((NS_STYLE_FLOAT_NONE != display->mFloats) ||
(NS_STYLE_POSITION_ABSOLUTE == position->mPosition)) {
// If it can contain children then wrap it in a BODY frame
// If it can contain children then wrap it in a BODY frame.
// XxX Don't wrap tables...
PRBool isContainer;
aContent->CanContainChildren(isContainer);
if (isContainer) {
if ((NS_STYLE_DISPLAY_TABLE != display->mDisplay) && isContainer) {
// The body wrapper frame gets the original style context
NS_NewBodyFrame(wrapperFrame, NS_BODY_SHRINK_WRAP);
wrapperFrame->Init(*aPresContext, aContent, aParentFrame, styleContext);

View File

@ -1988,11 +1988,12 @@ HTMLStyleSheetImpl::ConstructFrame(nsIPresContext* aPresContext,
if ((NS_STYLE_FLOAT_NONE != display->mFloats) ||
(NS_STYLE_POSITION_ABSOLUTE == position->mPosition)) {
// If it can contain children then wrap it in a BODY frame
// If it can contain children then wrap it in a BODY frame.
// XxX Don't wrap tables...
PRBool isContainer;
aContent->CanContainChildren(isContainer);
if (isContainer) {
if ((NS_STYLE_DISPLAY_TABLE != display->mDisplay) && isContainer) {
// The body wrapper frame gets the original style context
NS_NewBodyFrame(wrapperFrame, NS_BODY_SHRINK_WRAP);
wrapperFrame->Init(*aPresContext, aContent, aParentFrame, styleContext);