mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
style: Rustfmt recent changes.
This commit is contained in:
parent
1754c832d8
commit
071ce6f345
22 changed files with 210 additions and 163 deletions
|
@ -23,8 +23,10 @@ impl ToResolvedValue for computed::Content {
|
|||
|
||||
#[inline]
|
||||
fn to_resolved_value(self, context: &Context) -> Self {
|
||||
let is_before_or_after =
|
||||
context.style.pseudo().map_or(false, |p| p.is_before_or_after());
|
||||
let is_before_or_after = context
|
||||
.style
|
||||
.pseudo()
|
||||
.map_or(false, |p| p.is_before_or_after());
|
||||
|
||||
match self {
|
||||
Self::Normal if is_before_or_after => Self::None,
|
||||
|
@ -43,4 +45,3 @@ impl ToResolvedValue for computed::Content {
|
|||
resolved
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue