mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Fix Gecko build.
This commit is contained in:
parent
14bda8078e
commit
e6b4ceca07
2 changed files with 29 additions and 18 deletions
|
@ -703,7 +703,7 @@ pub type FontVariationSettings = FontSettings<VariationValue<Number>>;
|
|||
/// (see http://www.microsoft.com/typography/otspec/languagetags.htm).
|
||||
#[derive(Clone, Copy, Debug, Eq, MallocSizeOf, PartialEq, ToResolvedValue)]
|
||||
#[repr(C)]
|
||||
pub struct FontLanguageOverride(u32);
|
||||
pub struct FontLanguageOverride(pub u32);
|
||||
|
||||
impl FontLanguageOverride {
|
||||
#[inline]
|
||||
|
@ -762,6 +762,15 @@ impl ToCss for FontLanguageOverride {
|
|||
}
|
||||
}
|
||||
|
||||
// FIXME(emilio): Make Gecko use the cbindgen'd fontLanguageOverride, then
|
||||
// remove this.
|
||||
#[cfg(feature = "gecko")]
|
||||
impl From<u32> for FontLanguageOverride {
|
||||
fn from(v: u32) -> Self {
|
||||
unsafe { Self::from_u32(v) }
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(feature = "gecko")]
|
||||
impl From<FontLanguageOverride> for u32 {
|
||||
fn from(v: FontLanguageOverride) -> u32 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue