mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-16 06:45:42 +00:00
border-image-* properties should clamp negative calc(). (Bug 802279) r=jwalden
This commit is contained in:
parent
14c4ae4288
commit
f75d9419d4
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user