Use mOpacity as a float in the nsStyleColor struct

git-svn-id: svn://10.0.0.236/trunk@2554 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
kipp
1998-05-28 19:55:42 +00:00
parent afcc812131
commit 3f52aba142
3 changed files with 6 additions and 6 deletions

View File

@@ -845,10 +845,10 @@ void CSSStyleRuleImpl::MapStyleInto(nsIStyleContext* aContext, nsIPresContext* a
// opacity: factor, percent, enum
if (ourColor->mOpacity.GetUnit() == eCSSUnit_Percent) {
color->mOpacity.SetPercentValue(ourColor->mOpacity.GetPercentValue());
color->mOpacity = ourColor->mOpacity.GetPercentValue();
}
else if (ourColor->mOpacity.GetUnit() == eCSSUnit_Number) {
color->mOpacity.SetFactorValue(ourColor->mOpacity.GetFloatValue());
color->mOpacity = ourColor->mOpacity.GetFloatValue();
}
else if (ourColor->mOpacity.GetUnit() == eCSSUnit_Enumerated) {
// Only enum value is inherit