mirror of
https://github.com/servo/servo.git
synced 2025-06-23 08:34:42 +01:00
Handle device-pixel-ratio-webkit pref correctly.
This commit is contained in:
parent
d34d662b82
commit
a59fceeefc
1 changed files with 5 additions and 2 deletions
|
@ -490,10 +490,13 @@ impl Expression {
|
||||||
let result = {
|
let result = {
|
||||||
let mut feature_name = &**ident;
|
let mut feature_name = &**ident;
|
||||||
|
|
||||||
// TODO(emilio): this is under a pref in Gecko.
|
if unsafe { structs::StylePrefs_sWebkitPrefixedAliasesEnabled } &&
|
||||||
if starts_with_ignore_ascii_case(feature_name, "-webkit-") {
|
starts_with_ignore_ascii_case(feature_name, "-webkit-") {
|
||||||
feature_name = &feature_name[8..];
|
feature_name = &feature_name[8..];
|
||||||
flags |= nsMediaFeature_RequirementFlags::eHasWebkitPrefix as u8;
|
flags |= nsMediaFeature_RequirementFlags::eHasWebkitPrefix as u8;
|
||||||
|
if unsafe { structs::StylePrefs_sWebkitDevicePixelRatioEnabled } {
|
||||||
|
flags |= nsMediaFeature_RequirementFlags::eWebkitDevicePixelRatioPrefEnabled as u8;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
let range = if starts_with_ignore_ascii_case(feature_name, "min-") {
|
let range = if starts_with_ignore_ascii_case(feature_name, "min-") {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue