mirror of
https://github.com/servo/servo.git
synced 2025-08-07 14:35:33 +01:00
style: Rustfmt recent changes.
This commit is contained in:
parent
1754c832d8
commit
071ce6f345
22 changed files with 210 additions and 163 deletions
|
@ -204,7 +204,10 @@ impl<'a, 'b: 'a> StyleAdjuster<'a, 'b> {
|
|||
self.style.pseudo.map_or(false, |p| p.is_marker()) &&
|
||||
self.style.get_parent_list().clone_list_style_position() ==
|
||||
ListStylePosition::Outside &&
|
||||
!layout_parent_style.get_box().clone_display().is_inline_flow()
|
||||
!layout_parent_style
|
||||
.get_box()
|
||||
.clone_display()
|
||||
.is_inline_flow()
|
||||
);
|
||||
|
||||
if !blockify {
|
||||
|
@ -241,7 +244,8 @@ impl<'a, 'b: 'a> StyleAdjuster<'a, 'b> {
|
|||
}
|
||||
|
||||
if self.style.is_root_element {
|
||||
self.style.add_flags(ComputedValueFlags::IS_ROOT_ELEMENT_STYLE);
|
||||
self.style
|
||||
.add_flags(ComputedValueFlags::IS_ROOT_ELEMENT_STYLE);
|
||||
}
|
||||
|
||||
#[cfg(feature = "servo-layout-2013")]
|
||||
|
@ -285,8 +289,10 @@ impl<'a, 'b: 'a> StyleAdjuster<'a, 'b> {
|
|||
let writing_mode = self.style.get_inherited_box().clone_writing_mode();
|
||||
let text_combine_upright = self.style.get_inherited_text().clone_text_combine_upright();
|
||||
|
||||
if matches!(writing_mode, WritingMode::VerticalRl | WritingMode::VerticalLr) &&
|
||||
text_combine_upright == TextCombineUpright::All
|
||||
if matches!(
|
||||
writing_mode,
|
||||
WritingMode::VerticalRl | WritingMode::VerticalLr
|
||||
) && text_combine_upright == TextCombineUpright::All
|
||||
{
|
||||
self.style.add_flags(ComputedValueFlags::IS_TEXT_COMBINED);
|
||||
self.style
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue