mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
style: build / rebase fixes.
This commit is contained in:
parent
56283a3226
commit
7a696cbffe
2 changed files with 7 additions and 2 deletions
|
@ -258,6 +258,8 @@ impl<T> Locked<T> {
|
||||||
#[cfg(feature = "gecko")]
|
#[cfg(feature = "gecko")]
|
||||||
impl<T: ToShmem> ToShmem for Locked<T> {
|
impl<T: ToShmem> ToShmem for Locked<T> {
|
||||||
fn to_shmem(&self, builder: &mut SharedMemoryBuilder) -> to_shmem::Result<Self> {
|
fn to_shmem(&self, builder: &mut SharedMemoryBuilder) -> to_shmem::Result<Self> {
|
||||||
|
use std::mem::ManuallyDrop;
|
||||||
|
|
||||||
let guard = self.shared_lock.read();
|
let guard = self.shared_lock.read();
|
||||||
Ok(ManuallyDrop::new(Locked {
|
Ok(ManuallyDrop::new(Locked {
|
||||||
shared_lock: SharedRwLock::read_only(),
|
shared_lock: SharedRwLock::read_only(),
|
||||||
|
|
|
@ -498,10 +498,12 @@ impl ToComputedValue for FontStretch {
|
||||||
ToCss,
|
ToCss,
|
||||||
ToResolvedValue,
|
ToResolvedValue,
|
||||||
ToShmem,
|
ToShmem,
|
||||||
|
Serialize,
|
||||||
|
Deserialize,
|
||||||
)]
|
)]
|
||||||
#[cfg_attr(feature = "servo", derive(Serialize, Deserialize))]
|
|
||||||
#[allow(missing_docs)]
|
#[allow(missing_docs)]
|
||||||
pub enum KeywordSize {
|
#[repr(u8)]
|
||||||
|
pub enum FontSizeKeyword {
|
||||||
#[css(keyword = "xx-small")]
|
#[css(keyword = "xx-small")]
|
||||||
XXSmall,
|
XXSmall,
|
||||||
XSmall,
|
XSmall,
|
||||||
|
@ -794,6 +796,7 @@ impl FontSizeKeyword {
|
||||||
FontSizeKeyword::XLarge => medium * 3.0 / 2.0,
|
FontSizeKeyword::XLarge => medium * 3.0 / 2.0,
|
||||||
FontSizeKeyword::XXLarge => medium * 2.0,
|
FontSizeKeyword::XXLarge => medium * 2.0,
|
||||||
FontSizeKeyword::XXXLarge => medium * 3.0,
|
FontSizeKeyword::XXXLarge => medium * 3.0,
|
||||||
|
FontSizeKeyword::None => unreachable!(),
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue