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

views as having transparent content


git-svn-id: svn://10.0.0.236/trunk@18414 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
troy%netscape.com
1999-01-23 05:47:55 +00:00
parent 94c5f449dd
commit 953e1a3dbc
2 changed files with 20 additions and 0 deletions

View File

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