Fix for bug #12864. Changed CreateViewForFrame() so it respects the z-index

of relatively positioned elements


git-svn-id: svn://10.0.0.236/trunk@45404 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
troy%netscape.com
1999-09-01 01:10:24 +00:00
parent 67d5a7ce45
commit e5df81af3d
2 changed files with 12 additions and 2 deletions

View File

@@ -327,6 +327,11 @@ nsHTMLContainerFrame::CreateViewForFrame(nsIPresContext& aPresContext,
("nsHTMLContainerFrame::CreateViewForFrame: frame=%p relatively positioned",
aFrame));
aForce = PR_TRUE;
// Get the z-index to use
if (position->mZIndex.GetUnit() == eStyleUnit_Integer) {
zIndex = position->mZIndex.GetIntValue();
}
} else if (position->IsAbsolutelyPositioned()) {
NS_FRAME_LOG(NS_FRAME_TRACE_CALLS,
@@ -334,7 +339,7 @@ nsHTMLContainerFrame::CreateViewForFrame(nsIPresContext& aPresContext,
aFrame));
aForce = PR_TRUE;
// Get the z-index to use. This only applies to positioned elements
// Get the z-index to use
if (position->mZIndex.GetUnit() == eStyleUnit_Integer) {
zIndex = position->mZIndex.GetIntValue();
}