Skip to content
Browse files

style: Use Atomic<bool> for the staticpref version of layout.css.font…


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.

Bug: 1467134
Reviewed-by: emilio
  • Loading branch information
bzbarsky authored and emilio committed Jun 12, 2018
1 parent 915c872 commit 3816143a1d419ab89c7c7ab4cceb09e573e4aaf0
Showing with 1 addition and 1 deletion.
  1. +1 −1 components/style/
@@ -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 != 0
($name:tt) => {

0 comments on commit 3816143

Please sign in to comment.
You can’t perform that action at this time.