mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
style: Rustfmt servo/. r=zrhoffman
$ find servo -name '*.rs' | xargs rustup run nightly rustfmt Depends on D179380 Differential Revision: https://phabricator.services.mozilla.com/D179381
This commit is contained in:
parent
68cbe6833d
commit
ad72081ac8
70 changed files with 665 additions and 448 deletions
|
@ -398,7 +398,9 @@ impl ElementData {
|
|||
|
||||
let needs_to_recascade_self = hint.intersects(RestyleHint::RECASCADE_SELF) ||
|
||||
(hint.intersects(RestyleHint::RECASCADE_SELF_IF_INHERIT_RESET_STYLE) &&
|
||||
style.flags.contains(ComputedValueFlags::INHERITS_RESET_STYLE));
|
||||
style
|
||||
.flags
|
||||
.contains(ComputedValueFlags::INHERITS_RESET_STYLE));
|
||||
if needs_to_recascade_self {
|
||||
return Some(RestyleKind::CascadeOnly);
|
||||
}
|
||||
|
@ -442,7 +444,9 @@ impl ElementData {
|
|||
|
||||
let needs_to_recascade_self = hint.intersects(RestyleHint::RECASCADE_SELF) ||
|
||||
(hint.intersects(RestyleHint::RECASCADE_SELF_IF_INHERIT_RESET_STYLE) &&
|
||||
style.flags.contains(ComputedValueFlags::INHERITS_RESET_STYLE));
|
||||
style
|
||||
.flags
|
||||
.contains(ComputedValueFlags::INHERITS_RESET_STYLE));
|
||||
if needs_to_recascade_self {
|
||||
return Some(RestyleKind::CascadeOnly);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue