Bug 531371. Correctly propagate the backround from a <body style="display: table"> to the viewport as needed. r=bzbarsky

This commit is contained in:
Robert O'Callahan
2009-12-01 12:21:00 -05:00
parent 19a7ef4c17
commit fff39da5f4
9 changed files with 43 additions and 26 deletions

View File

@@ -1132,9 +1132,7 @@ nsIFrame*
nsGenericElement::GetStyledFrame()
{
nsIFrame *frame = GetPrimaryFrame(Flush_Layout);
return (frame && frame->GetType() == nsGkAtoms::tableOuterFrame) ?
frame->GetFirstChild(nsnull) : frame;
return frame ? nsLayoutUtils::GetStyleFrame(frame) : nsnull;
}
void