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.

This commit is contained in:
pierre%netscape.com 1999-12-01 04:10:02 +00:00
Родитель 10e15dd783
Коммит ce15b0c85d
2 изменённых файлов: 8 добавлений и 2 удалений

Просмотреть файл

@ -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);

Просмотреть файл

@ -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);