mirror of
https://github.com/servo/servo.git
synced 2025-08-08 15:05:35 +01:00
style: Remove system font support for various font longhands
We don't use them[1], and these are generally not properties that authors would be able to set via the font shorthand anyways. Let's simplify the code. This fixes the font-variant bug and also unblocks further clean-ups of these properties in the future. [1]: https://searchfox.org/mozilla-central/rev/59f0bf3c13dd455d9f5415b89178de701ea6b850/widget/LookAndFeelTypes.ipdlh#12-18 Differential Revision: https://phabricator.services.mozilla.com/D160352
This commit is contained in:
parent
3c4d198ad7
commit
efdf518acc
7 changed files with 156 additions and 588 deletions
|
@ -17,10 +17,8 @@ use crate::values::generics::font::FontStyle as GenericFontStyle;
|
|||
#[cfg(feature = "gecko")]
|
||||
use crate::values::specified::font::MetricsOverride;
|
||||
#[cfg(feature = "gecko")]
|
||||
use crate::values::specified::font::SpecifiedFontFeatureSettings;
|
||||
use crate::values::specified::font::{FontFeatureSettings, FontVariationSettings};
|
||||
use crate::values::specified::font::SpecifiedFontStyle;
|
||||
#[cfg(feature = "gecko")]
|
||||
use crate::values::specified::font::SpecifiedFontVariationSettings;
|
||||
use crate::values::specified::font::{AbsoluteFontWeight, FontStretch as SpecifiedFontStretch};
|
||||
use crate::values::specified::url::SpecifiedUrl;
|
||||
use crate::values::specified::Angle;
|
||||
|
@ -760,10 +758,10 @@ font_face_descriptors! {
|
|||
"unicode-range" unicode_range / mUnicodeRange: Vec<UnicodeRange>,
|
||||
|
||||
/// The feature settings of this font face.
|
||||
"font-feature-settings" feature_settings / mFontFeatureSettings: SpecifiedFontFeatureSettings,
|
||||
"font-feature-settings" feature_settings / mFontFeatureSettings: FontFeatureSettings,
|
||||
|
||||
/// The variation settings of this font face.
|
||||
"font-variation-settings" variation_settings / mFontVariationSettings: SpecifiedFontVariationSettings,
|
||||
"font-variation-settings" variation_settings / mFontVariationSettings: FontVariationSettings,
|
||||
|
||||
/// The language override of this font face.
|
||||
"font-language-override" language_override / mFontLanguageOverride: font_language_override::SpecifiedValue,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue