mirror of
https://github.com/servo/servo.git
synced 2025-08-05 05:30:08 +01:00
layout_2020: Check blocks for whether they will establish a formatting context
This commit is contained in:
parent
b8a037fc1f
commit
5c71219819
1 changed files with 4 additions and 2 deletions
|
@ -11,7 +11,7 @@ use crate::flow::inline::{InlineBox, InlineFormattingContext, InlineLevelBox, Te
|
||||||
use crate::flow::{BlockContainer, BlockFormattingContext, BlockLevelBox};
|
use crate::flow::{BlockContainer, BlockFormattingContext, BlockLevelBox};
|
||||||
use crate::formatting_contexts::IndependentFormattingContext;
|
use crate::formatting_contexts::IndependentFormattingContext;
|
||||||
use crate::positioned::AbsolutelyPositionedBox;
|
use crate::positioned::AbsolutelyPositionedBox;
|
||||||
use crate::style_ext::{DisplayGeneratingBox, DisplayInside, DisplayOutside};
|
use crate::style_ext::{ComputedValuesExt, DisplayGeneratingBox, DisplayInside, DisplayOutside};
|
||||||
use rayon::iter::{IntoParallelIterator, ParallelIterator};
|
use rayon::iter::{IntoParallelIterator, ParallelIterator};
|
||||||
use rayon_croissant::ParallelIteratorExt;
|
use rayon_croissant::ParallelIteratorExt;
|
||||||
use servo_arc::Arc;
|
use servo_arc::Arc;
|
||||||
|
@ -591,7 +591,9 @@ where
|
||||||
|
|
||||||
let kind = match contents.try_into() {
|
let kind = match contents.try_into() {
|
||||||
Ok(contents) => match display_inside {
|
Ok(contents) => match display_inside {
|
||||||
DisplayInside::Flow { is_list_item } => {
|
DisplayInside::Flow { is_list_item }
|
||||||
|
if !info.style.establishes_block_formatting_context() =>
|
||||||
|
{
|
||||||
BlockLevelCreator::SameFormattingContextBlock(
|
BlockLevelCreator::SameFormattingContextBlock(
|
||||||
IntermediateBlockContainer::Deferred {
|
IntermediateBlockContainer::Deferred {
|
||||||
contents,
|
contents,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue