mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
style: Remove lazy_static usage from custom_properties.rs.
Differential Revision: https://phabricator.services.mozilla.com/D60039
This commit is contained in:
parent
6fa03e1d04
commit
9817ca386c
1 changed files with 6 additions and 8 deletions
|
@ -62,14 +62,12 @@ fn get_safearea_inset_right(device: &Device) -> VariableValue {
|
|||
VariableValue::pixel(device.safe_area_insets().right)
|
||||
}
|
||||
|
||||
lazy_static! {
|
||||
static ref ENVIRONMENT_VARIABLES: [EnvironmentVariable; 4] = [
|
||||
make_variable!(atom!("safe-area-inset-top"), get_safearea_inset_top),
|
||||
make_variable!(atom!("safe-area-inset-bottom"), get_safearea_inset_bottom),
|
||||
make_variable!(atom!("safe-area-inset-left"), get_safearea_inset_left),
|
||||
make_variable!(atom!("safe-area-inset-right"), get_safearea_inset_right),
|
||||
];
|
||||
}
|
||||
static ENVIRONMENT_VARIABLES: [EnvironmentVariable; 4] = [
|
||||
make_variable!(atom!("safe-area-inset-top"), get_safearea_inset_top),
|
||||
make_variable!(atom!("safe-area-inset-bottom"), get_safearea_inset_bottom),
|
||||
make_variable!(atom!("safe-area-inset-left"), get_safearea_inset_left),
|
||||
make_variable!(atom!("safe-area-inset-right"), get_safearea_inset_right),
|
||||
];
|
||||
|
||||
impl CssEnvironment {
|
||||
#[inline]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue