mirror of
https://github.com/servo/servo.git
synced 2025-08-13 17:35:36 +01:00
Further changes required by Servo
This commit is contained in:
parent
dcafbde256
commit
105050d46d
9 changed files with 72 additions and 88 deletions
|
@ -48,8 +48,9 @@ pub use crate::values::specified::Integer as SpecifiedInteger;
|
|||
/// cbindgen:derive-gte
|
||||
#[repr(C)]
|
||||
#[derive(
|
||||
Clone, ComputeSquaredDistance, Copy, Debug, Hash, MallocSizeOf, PartialEq, PartialOrd, ToResolvedValue,
|
||||
Clone, ComputeSquaredDistance, Copy, Debug, Eq, Hash, MallocSizeOf, PartialEq, PartialOrd, ToResolvedValue,
|
||||
)]
|
||||
#[cfg_attr(feature = "servo", derive(Deserialize, Serialize))]
|
||||
pub struct FixedPoint<T, const FRACTION_BITS: u16> {
|
||||
value: T,
|
||||
}
|
||||
|
@ -901,8 +902,9 @@ pub type FontStyleFixedPoint = FixedPoint<i16, FONT_STYLE_FRACTION_BITS>;
|
|||
/// cbindgen:derive-gt
|
||||
/// cbindgen:derive-gte
|
||||
#[derive(
|
||||
Clone, ComputeSquaredDistance, Copy, Debug, Hash, MallocSizeOf, PartialEq, PartialOrd, ToResolvedValue,
|
||||
Clone, ComputeSquaredDistance, Copy, Debug, Eq, Hash, MallocSizeOf, PartialEq, PartialOrd, ToResolvedValue,
|
||||
)]
|
||||
#[cfg_attr(feature = "servo", derive(Deserialize, Serialize))]
|
||||
#[repr(C)]
|
||||
pub struct FontStyle(FontStyleFixedPoint);
|
||||
|
||||
|
@ -1012,6 +1014,7 @@ pub type FontStretchFixedPoint = FixedPoint<u16, FONT_STRETCH_FRACTION_BITS>;
|
|||
#[derive(
|
||||
Clone, ComputeSquaredDistance, Copy, Debug, MallocSizeOf, PartialEq, PartialOrd, ToResolvedValue,
|
||||
)]
|
||||
#[cfg_attr(feature = "servo", derive(Deserialize, Hash, Serialize))]
|
||||
#[repr(C)]
|
||||
pub struct FontStretch(pub FontStretchFixedPoint);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue