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