mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Implement normal for FontSettings
This commit is contained in:
parent
e4cfff8364
commit
dcdc384122
3 changed files with 8 additions and 16 deletions
|
@ -1804,14 +1804,6 @@ impl Parse for FontLanguageOverride {
|
|||
/// This property provides low-level control over OpenType or TrueType font variations.
|
||||
pub type FontVariantSettings = FontSettings<FontSettingTagFloat>;
|
||||
|
||||
impl FontVariantSettings {
|
||||
#[inline]
|
||||
/// Default value of `font-variant-settings`
|
||||
pub fn normal() -> FontVariantSettings {
|
||||
FontSettings::Normal
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Clone, Debug, MallocSizeOf, PartialEq, ToComputedValue)]
|
||||
/// text-zoom. Enable if true, disable if false
|
||||
pub struct XTextZoom(pub bool);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue