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:
@@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user