aboutsummaryrefslogtreecommitdiffstats
path: root/components/style/sharing/mod.rs
diff options
context:
space:
mode:
authorTing-Yu Lin <tlin@mozilla.com>2022-09-28 07:10:52 +0000
committerMartin Robinson <mrobinson@igalia.com>2023-11-03 08:59:49 +0100
commit3da52edffc2e28db2271826b0dce96e0a08c6847 (patch)
treeddd20f65d393bdb8bdd77037de4187f6d8ee016e /components/style/sharing/mod.rs
parent1a9198a5ef59cbaf2417133076352cd2be0a801d (diff)
downloadservo-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/sharing/mod.rs')
-rw-r--r--components/style/sharing/mod.rs17
1 files changed, 3 insertions, 14 deletions
diff --git a/components/style/sharing/mod.rs b/components/style/sharing/mod.rs
index 91e4f02e084..28883d6d139 100644
--- a/components/style/sharing/mod.rs
+++ b/components/style/sharing/mod.rs
@@ -75,7 +75,7 @@ use crate::stylist::Stylist;
use crate::values::AtomIdent;
use atomic_refcell::{AtomicRefCell, AtomicRefMut};
use owning_ref::OwningHandle;
-use selectors::matching::{VisitedHandlingMode, NeedsSelectorFlags};
+use selectors::matching::{NeedsSelectorFlags, VisitedHandlingMode};
use selectors::NthIndexCache;
use servo_arc::Arc;
use smallbitvec::SmallBitVec;
@@ -434,12 +434,7 @@ impl<E: TElement> StyleSharingTarget<E> {
self.element.traversal_parent()
);
- cache.share_style_if_possible(
- shared_context,
- bloom_filter,
- nth_index_cache,
- self,
- )
+ cache.share_style_if_possible(shared_context, bloom_filter, nth_index_cache, self)
}
/// Gets the validation data used to match against this target, if any.
@@ -800,13 +795,7 @@ impl<E: TElement> StyleSharingCache<E> {
return None;
}
- if !checks::revalidate(
- target,
- candidate,
- shared,
- bloom,
- nth_index_cache,
- ) {
+ if !checks::revalidate(target, candidate, shared, bloom, nth_index_cache) {
trace!("Miss: Revalidation");
return None;
}