mirror of
https://github.com/servo/servo.git
synced 2025-09-01 02:28:21 +01:00
Replace usage of std::intrinsics::discriminant_value in properties.mako.rs
This commit is contained in:
parent
00af25b685
commit
f3d6859ab7
2 changed files with 27 additions and 32 deletions
|
@ -106,7 +106,7 @@ impl ComputedValues for GeckoComputedValues {
|
|||
|
||||
fn initial_values() -> &'static Self { &*INITIAL_GECKO_VALUES }
|
||||
|
||||
fn do_cascade_property<F: FnOnce(&Vec<Option<CascadePropertyFn<Self>>>)>(f: F) {
|
||||
fn do_cascade_property<F: FnOnce(&Vec<CascadePropertyFn<Self>>)>(f: F) {
|
||||
CASCADE_PROPERTY.with(|x| f(x));
|
||||
}
|
||||
|
||||
|
@ -1135,6 +1135,6 @@ lazy_static! {
|
|||
|
||||
// This is a thread-local rather than a lazy static to avoid atomic operations when cascading
|
||||
// properties.
|
||||
thread_local!(static CASCADE_PROPERTY: Vec<Option<CascadePropertyFn<GeckoComputedValues>>> = {
|
||||
thread_local!(static CASCADE_PROPERTY: Vec<CascadePropertyFn<GeckoComputedValues>> = {
|
||||
make_cascade_vec::<GeckoComputedValues>()
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue