mirror of
https://github.com/servo/servo.git
synced 2025-08-02 12:10:29 +01:00
style: Reformat the signature of insert_if_possible.
This commit is contained in:
parent
298b1363ff
commit
9d671058df
1 changed files with 7 additions and 5 deletions
|
@ -546,11 +546,13 @@ impl<E: TElement> StyleSharingCache<E> {
|
|||
///
|
||||
/// NB: We pass a source for the validation data, rather than the data itself,
|
||||
/// to avoid memmoving at each function call. See rust issue #42763.
|
||||
pub fn insert_if_possible(&mut self,
|
||||
element: &E,
|
||||
style: &ComputedValues,
|
||||
validation_data_holder: Option<&mut StyleSharingTarget<E>>,
|
||||
dom_depth: usize) {
|
||||
pub fn insert_if_possible(
|
||||
&mut self,
|
||||
element: &E,
|
||||
style: &ComputedValues,
|
||||
validation_data_holder: Option<&mut StyleSharingTarget<E>>,
|
||||
dom_depth: usize,
|
||||
) {
|
||||
let parent = match element.traversal_parent() {
|
||||
Some(element) => element,
|
||||
None => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue