Added mZIndex to nsStylePosition. Absolutely positioned code now passed

it along to view system


git-svn-id: svn://10.0.0.236/trunk@608 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
troy
1998-04-24 18:34:31 +00:00
parent 7c00209154
commit 200fd1ff3d
9 changed files with 56 additions and 11 deletions

View File

@@ -697,6 +697,13 @@ void CSSStyleRuleImpl::MapStyleInto(nsIStyleContext* aContext, nsIPresContext* a
position->mHeight = (nscoord)(100 * ourPosition->mHeight.GetFloatValue());
position->mHeightFlags = NS_STYLE_POSITION_VALUE_PCT;
}
// z-index
if (ourPosition->mZIndex.GetUnit() == eCSSUnit_Enumerated) {
position->mPosition = ourPosition->mPosition.GetIntValue();
} else if (ourPosition->mZIndex.GetUnit() == eCSSUnit_Absolute) {
position->mZIndex = ourPosition->mZIndex.GetIntValue();
}
}
}