зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1609489 - Remove lazy_static usage from custom_properties.rs. r=m_kato
Differential Revision: https://phabricator.services.mozilla.com/D60039 --HG-- extra : moz-landing-system : lando
This commit is contained in:
Родитель
b420323493
Коммит
6110aba7be
|
@ -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] = [
|
||||
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]
|
||||
|
|
Загрузка…
Ссылка в новой задаче