Part of the fix for bug #2502. For the time being mark relative/absolute positioned

views as having transparent content
This commit is contained in:
troy%netscape.com 1999-01-23 05:47:55 +00:00
Родитель 0a2d359c38
Коммит b8e3d41dab
2 изменённых файлов: 20 добавлений и 0 удалений

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

@ -316,6 +316,16 @@ nsHTMLContainerFrame::CreateViewForFrame(nsIPresContext& aPresContext,
!display->mVisible) {
viewManager->SetViewContentTransparency(view, PR_TRUE);
}
// XXX If it's relatively positioned or absolutely positioned then we
// need to mark it as having transparent content, too. See bug #2502
const nsStylePosition* position = (const nsStylePosition*)
aStyleContext->GetStyleData(eStyleStruct_Position);
if ((NS_STYLE_POSITION_RELATIVE == position->mPosition) ||
(NS_STYLE_POSITION_ABSOLUTE == position->mPosition)) {
viewManager->SetViewContentTransparency(view, PR_TRUE);
}
viewManager->SetViewOpacity(view, color->mOpacity);
NS_RELEASE(viewManager);
}

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

@ -316,6 +316,16 @@ nsHTMLContainerFrame::CreateViewForFrame(nsIPresContext& aPresContext,
!display->mVisible) {
viewManager->SetViewContentTransparency(view, PR_TRUE);
}
// XXX If it's relatively positioned or absolutely positioned then we
// need to mark it as having transparent content, too. See bug #2502
const nsStylePosition* position = (const nsStylePosition*)
aStyleContext->GetStyleData(eStyleStruct_Position);
if ((NS_STYLE_POSITION_RELATIVE == position->mPosition) ||
(NS_STYLE_POSITION_ABSOLUTE == position->mPosition)) {
viewManager->SetViewContentTransparency(view, PR_TRUE);
}
viewManager->SetViewOpacity(view, color->mOpacity);
NS_RELEASE(viewManager);
}