diff options
author | Ting-Yu Lin <tlin@mozilla.com> | 2022-09-28 07:10:52 +0000 |
---|---|---|
committer | Martin Robinson <mrobinson@igalia.com> | 2023-11-03 08:59:49 +0100 |
commit | 3da52edffc2e28db2271826b0dce96e0a08c6847 (patch) | |
tree | ddd20f65d393bdb8bdd77037de4187f6d8ee016e /components/style/custom_properties.rs | |
parent | 1a9198a5ef59cbaf2417133076352cd2be0a801d (diff) | |
download | servo-3da52edffc2e28db2271826b0dce96e0a08c6847.tar.gz servo-3da52edffc2e28db2271826b0dce96e0a08c6847.zip |
style: Run "cargo +nightly fmt" for style components in servo
The directories changed:
* servo/components/selectors/
* servo/components/style/
* servo/components/style_derive/
* servo/ports/geckolib/
Per review request, disable rustfmt in `components_to_transform_3d_matrix()` to
preserve the format for a call to `Transform3D::new`.
My mozilla-central is at
https://hg.mozilla.org/mozilla-central/rev/d1ae84015c22f2034435b47194fdced878072035
My nightly rust is 1.66.0-nightly (8b705839c 2022-09-26).
Differential Revision: https://phabricator.services.mozilla.com/D158234
Diffstat (limited to 'components/style/custom_properties.rs')
-rw-r--r-- | components/style/custom_properties.rs | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/components/style/custom_properties.rs b/components/style/custom_properties.rs index 054e5a17c74..9538cce4ab3 100644 --- a/components/style/custom_properties.rs +++ b/components/style/custom_properties.rs @@ -142,7 +142,10 @@ static CHROME_ENVIRONMENT_VARIABLES: [EnvironmentVariable; 6] = [ GTKCSDMaximizeButtonPosition, integer ), - make_variable!(atom!("-moz-content-preferred-color-scheme"), get_content_preferred_color_scheme), + make_variable!( + atom!("-moz-content-preferred-color-scheme"), + get_content_preferred_color_scheme + ), ]; impl CssEnvironment { @@ -799,7 +802,11 @@ impl<'a> CustomPropertiesBuilder<'a> { /// (meaning we should use the inherited value). /// /// It does cycle dependencies removal at the same time as substitution. -fn substitute_all(custom_properties_map: &mut CustomPropertiesMap, seen: &PrecomputedHashSet<&Name>, device: &Device) { +fn substitute_all( + custom_properties_map: &mut CustomPropertiesMap, + seen: &PrecomputedHashSet<&Name>, + device: &Device, +) { // The cycle dependencies removal in this function is a variant // of Tarjan's algorithm. It is mostly based on the pseudo-code // listed in |