mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
style: Be consistent for which URIs we expose chrome rules
Differential Revision: https://phabricator.services.mozilla.com/D171640
This commit is contained in:
parent
664e44385e
commit
cfb7a9a108
2 changed files with 3 additions and 3 deletions
|
@ -162,7 +162,7 @@ impl CssEnvironment {
|
|||
if let Some(var) = ENVIRONMENT_VARIABLES.iter().find(|var| var.name == *name) {
|
||||
return Some((var.evaluator)(device));
|
||||
}
|
||||
if !device.is_chrome_document() {
|
||||
if !device.chrome_rules_enabled_for_document() {
|
||||
return None;
|
||||
}
|
||||
let var = CHROME_ENVIRONMENT_VARIABLES
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue