mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-09 19:35:51 +00:00
Bug 1467134. Use Atomic<bool> for the staticpref version of layout.css.font-variations.enabled. r=emilio
Atomic<bool> is implemented in terms of AtomicBase<uint32_t>, because that way you don't need to depend on atomic 1-byte operations. That means that the rust bindgen sees it as a u32, not a bool. It's a bit concerning that the rust code seems to be doing an unsynchronized read here, but given this is a RelaxedAtomic, that's probably ok.
This commit is contained in:
parent
3c000b3d69
commit
5978e8417a
@ -278,7 +278,7 @@ VARCACHE_PREF(
|
||||
VARCACHE_PREF(
|
||||
"layout.css.font-variations.enabled",
|
||||
layout_css_font_variations_enabled,
|
||||
bool, true
|
||||
RelaxedAtomicBool, true
|
||||
)
|
||||
|
||||
// Are we emulating -moz-{inline}-box layout using CSS flexbox?
|
||||
|
@ -323,7 +323,7 @@ macro_rules! is_descriptor_enabled {
|
||||
("font-variation-settings") => {
|
||||
unsafe {
|
||||
use gecko_bindings::structs::mozilla;
|
||||
mozilla::StaticPrefs_sVarCache_layout_css_font_variations_enabled
|
||||
mozilla::StaticPrefs_sVarCache_layout_css_font_variations_enabled != 0
|
||||
}
|
||||
};
|
||||
($name:tt) => {
|
||||
|
Loading…
Reference in New Issue
Block a user