mirror of
https://github.com/servo/servo.git
synced 2025-09-05 12:38:21 +01:00
Auto merge of #16937 - nox:clamp-calc, r=emilio
Fix calc() clamping issues <!-- Reviewable:start --> This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/16937) <!-- Reviewable:end -->
This commit is contained in:
commit
b4204b5e2d
9 changed files with 36 additions and 24 deletions
|
@ -24,7 +24,7 @@ impl From<CalcLengthOrPercentage> for nsStyleCoord_CalcValue {
|
|||
fn from(other: CalcLengthOrPercentage) -> nsStyleCoord_CalcValue {
|
||||
let has_percentage = other.percentage.is_some();
|
||||
nsStyleCoord_CalcValue {
|
||||
mLength: other.length().0,
|
||||
mLength: other.unclamped_length().0,
|
||||
mPercent: other.percentage.unwrap_or(0.0),
|
||||
mHasPercent: has_percentage,
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue