18163 "Use of fixed positioning in style sheet corrupts display". Don't create empty widgets for fixed positioned elements in order to avoid problems in the View Manager (GetDrawingSurface) where we end up copying uninitialized bitmaps to the screen. The main reason for fixing the bug here instead of within the View Manager is that we'll get rid of widgets altogether over time.

git-svn-id: svn://10.0.0.236/trunk@54860 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
pierre%netscape.com 1999-12-01 04:10:02 +00:00
parent 3518a79713
commit ebcb5ad836
2 changed files with 8 additions and 2 deletions

View File

@ -468,7 +468,10 @@ nsHTMLContainerFrame::CreateViewForFrame(nsIPresContext* aPresContext,
aStyleContext->GetStyleData(eStyleStruct_Position);
if (NS_STYLE_POSITION_FIXED == position->mPosition) {
view->CreateWidget(kCChildCID);
nsRect rect;
view->GetBounds(rect);
if (! rect.IsEmpty())
view->CreateWidget(kCChildCID);
}
viewManager->SetViewOpacity(view, color->mOpacity);

View File

@ -468,7 +468,10 @@ nsHTMLContainerFrame::CreateViewForFrame(nsIPresContext* aPresContext,
aStyleContext->GetStyleData(eStyleStruct_Position);
if (NS_STYLE_POSITION_FIXED == position->mPosition) {
view->CreateWidget(kCChildCID);
nsRect rect;
view->GetBounds(rect);
if (! rect.IsEmpty())
view->CreateWidget(kCChildCID);
}
viewManager->SetViewOpacity(view, color->mOpacity);