border-image-* properties should clamp negative calc(). (Bug 802279) r=jwalden

This commit is contained in:
L. David Baron 2012-11-21 21:51:39 -08:00
parent 14c4ae4288
commit f75d9419d4

View File

@ -2915,7 +2915,7 @@ nsComputedDOMStyle::DoGetBorderImageSlice()
NS_FOR_CSS_SIDES (side) {
nsROCSSPrimitiveValue* val = GetROCSSPrimitiveValue();
valueList->AppendCSSValue(val);
SetValueToCoord(val, border->mBorderImageSlice.Get(side), false, nullptr);
SetValueToCoord(val, border->mBorderImageSlice.Get(side), true, nullptr);
}
// Fill keyword.
@ -2937,7 +2937,7 @@ nsComputedDOMStyle::DoGetBorderImageWidth()
nsROCSSPrimitiveValue* val = GetROCSSPrimitiveValue();
valueList->AppendCSSValue(val);
SetValueToCoord(val, border->mBorderImageWidth.Get(side),
false, nullptr);
true, nullptr);
}
return valueList;
@ -2954,7 +2954,7 @@ nsComputedDOMStyle::DoGetBorderImageOutset()
nsROCSSPrimitiveValue* val = GetROCSSPrimitiveValue();
valueList->AppendCSSValue(val);
SetValueToCoord(val, border->mBorderImageOutset.Get(side),
false, nullptr);
true, nullptr);
}
return valueList;