mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-25 20:01:50 +00:00
Temporary change to make sure we don't wrap floated tables in a BODY frame
This commit is contained in:
parent
54aeeda011
commit
e05b04aa92
@ -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);
|
||||
|
@ -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);
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user