mirror of
https://github.com/servo/servo.git
synced 2025-08-10 07:55:33 +01:00
Convert StylePrefs to StaticPrefs.
This commit is contained in:
parent
a208d4246c
commit
8705fb3783
9 changed files with 46 additions and 46 deletions
|
@ -610,11 +610,11 @@ impl Expression {
|
|||
let result = {
|
||||
let mut feature_name = &**ident;
|
||||
|
||||
if unsafe { structs::StylePrefs_sWebkitPrefixedAliasesEnabled } &&
|
||||
if unsafe { structs::StaticPrefs_sVarCache_layout_css_prefixes_webkit } &&
|
||||
starts_with_ignore_ascii_case(feature_name, "-webkit-") {
|
||||
feature_name = &feature_name[8..];
|
||||
flags |= structs::nsMediaFeature_RequirementFlags_eHasWebkitPrefix;
|
||||
if unsafe { structs::StylePrefs_sWebkitDevicePixelRatioEnabled } {
|
||||
if unsafe { structs::StaticPrefs_sVarCache_layout_css_prefixes_device_pixel_ratio_webkit } {
|
||||
flags |= structs::nsMediaFeature_RequirementFlags_eWebkitDevicePixelRatioPrefEnabled;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue