mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 06:27:45 +00:00
LibWeb: Don't assume the parent is BFC in the IFC
This commit is contained in:
parent
4560a8b83f
commit
0ccde5417b
1 changed files with 3 additions and 0 deletions
|
@ -31,6 +31,9 @@ struct AvailableSpaceForLineInfo {
|
||||||
|
|
||||||
static AvailableSpaceForLineInfo available_space_for_line(const InlineFormattingContext& context, size_t line_index)
|
static AvailableSpaceForLineInfo available_space_for_line(const InlineFormattingContext& context, size_t line_index)
|
||||||
{
|
{
|
||||||
|
if (!context.parent()->is_block_formatting_context())
|
||||||
|
return { 0, context.context_box().width() };
|
||||||
|
|
||||||
AvailableSpaceForLineInfo info;
|
AvailableSpaceForLineInfo info;
|
||||||
|
|
||||||
// FIXME: This is a total hack guess since we don't actually know the final y position of lines here!
|
// FIXME: This is a total hack guess since we don't actually know the final y position of lines here!
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue