mirror of
https://github.com/servo/servo.git
synced 2025-07-22 14:53:49 +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")]
|
||||
impl<T: ToShmem> ToShmem for Locked<T> {
|
||||
fn to_shmem(&self, builder: &mut SharedMemoryBuilder) -> to_shmem::Result<Self> {
|
||||
use std::mem::ManuallyDrop;
|
||||
|
||||
let guard = self.shared_lock.read();
|
||||
Ok(ManuallyDrop::new(Locked {
|
||||
shared_lock: SharedRwLock::read_only(),
|
||||
|
|
|
@ -498,10 +498,12 @@ impl ToComputedValue for FontStretch {
|
|||
ToCss,
|
||||
ToResolvedValue,
|
||||
ToShmem,
|
||||
Serialize,
|
||||
Deserialize,
|
||||
)]
|
||||
#[cfg_attr(feature = "servo", derive(Serialize, Deserialize))]
|
||||
#[allow(missing_docs)]
|
||||
pub enum KeywordSize {
|
||||
#[repr(u8)]
|
||||
pub enum FontSizeKeyword {
|
||||
#[css(keyword = "xx-small")]
|
||||
XXSmall,
|
||||
XSmall,
|
||||
|
@ -794,6 +796,7 @@ impl FontSizeKeyword {
|
|||
FontSizeKeyword::XLarge => medium * 3.0 / 2.0,
|
||||
FontSizeKeyword::XXLarge => medium * 2.0,
|
||||
FontSizeKeyword::XXXLarge => medium * 3.0,
|
||||
FontSizeKeyword::None => unreachable!(),
|
||||
})
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue