mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Factor out BlockFlow::background_border_section()
This commit is contained in:
parent
836e59e5b6
commit
f3531d1d35
3 changed files with 23 additions and 19 deletions
|
@ -2863,20 +2863,7 @@ impl BlockFlowDisplayListBuilding for BlockFlow {
|
|||
state: &mut DisplayListBuildState,
|
||||
border_painting_mode: BorderPaintingMode,
|
||||
) {
|
||||
let background_border_section = if self.base.flags.is_float() {
|
||||
DisplayListSection::BackgroundAndBorders
|
||||
} else if self.base
|
||||
.flags
|
||||
.contains(FlowFlags::IS_ABSOLUTELY_POSITIONED)
|
||||
{
|
||||
if self.fragment.establishes_stacking_context() {
|
||||
DisplayListSection::BackgroundAndBorders
|
||||
} else {
|
||||
DisplayListSection::BlockBackgroundsAndBorders
|
||||
}
|
||||
} else {
|
||||
DisplayListSection::BlockBackgroundsAndBorders
|
||||
};
|
||||
let background_border_section = self.background_border_section();
|
||||
|
||||
state.processing_scrolling_overflow_element = self.has_scrolling_overflow();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue