mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +01:00
Fix servo build and rustfmt recent changes.
We need to introduce another Cursor enum that is specific to embedder_traits and that layout converts to to avoid dependency hell.
This commit is contained in:
parent
05881b5ab4
commit
90c0ec0cf7
19 changed files with 243 additions and 111 deletions
|
@ -36,9 +36,7 @@ use style_traits::values::specified::AllowedNumericType;
|
|||
impl From<LengthPercentage> for nsStyleCoord_CalcValue {
|
||||
fn from(other: LengthPercentage) -> nsStyleCoord_CalcValue {
|
||||
debug_assert!(
|
||||
other.was_calc ||
|
||||
!other.has_percentage ||
|
||||
other.unclamped_length() == Length::zero()
|
||||
other.was_calc || !other.has_percentage || other.unclamped_length() == Length::zero()
|
||||
);
|
||||
nsStyleCoord_CalcValue {
|
||||
mLength: other.unclamped_length().to_i32_au(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue