mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
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
This commit is contained in:
parent
1a9198a5ef
commit
3da52edffc
60 changed files with 684 additions and 489 deletions
|
@ -19,10 +19,8 @@ use smallvec::SmallVec;
|
|||
use std::collections::HashMap;
|
||||
|
||||
/// A cache from element reference to known-valid computed style.
|
||||
pub type UndisplayedStyleCache = HashMap<
|
||||
selectors::OpaqueElement,
|
||||
servo_arc::Arc<crate::properties::ComputedValues>,
|
||||
>;
|
||||
pub type UndisplayedStyleCache =
|
||||
HashMap<selectors::OpaqueElement, servo_arc::Arc<crate::properties::ComputedValues>>;
|
||||
|
||||
/// A per-traversal-level chunk of data. This is sent down by the traversal, and
|
||||
/// currently only holds the dom depth for the bloom filter.
|
||||
|
@ -336,9 +334,8 @@ where
|
|||
}
|
||||
|
||||
ancestor = ancestor.unwrap().traversal_parent();
|
||||
layout_parent_style = ancestor.and_then(|a| {
|
||||
a.borrow_data().map(|data| data.styles.primary().clone())
|
||||
});
|
||||
layout_parent_style =
|
||||
ancestor.and_then(|a| a.borrow_data().map(|data| data.styles.primary().clone()));
|
||||
}
|
||||
|
||||
for ancestor in ancestors_requiring_style_resolution.iter().rev() {
|
||||
|
@ -792,7 +789,7 @@ fn note_children<E, D, F>(
|
|||
},
|
||||
ChildRestyleRequirement::MustMatchDescendants => {
|
||||
child_hint |= RestyleHint::restyle_subtree();
|
||||
}
|
||||
},
|
||||
}
|
||||
|
||||
child_data.hint.insert(child_hint);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue