mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 04:08:11 +00:00
LibWeb: Use Box::has_intrinsic_aspect_ratio() check in FFC step 3
Now that we can ask any Box about its intrinsic aspect ratio, let's fix a FIXME in FlexFormattingContext.
This commit is contained in:
parent
a58cc2eeb4
commit
410e2b43ce
1 changed files with 1 additions and 2 deletions
|
@ -471,8 +471,7 @@ void FlexFormattingContext::determine_flex_base_size_and_hypothetical_main_size(
|
|||
// - an intrinsic aspect ratio,
|
||||
// - a used flex basis of content, and
|
||||
// - a definite cross size,
|
||||
bool has_intrinsic_aspect_ratio = false; // FIXME: Populate this.
|
||||
if (has_intrinsic_aspect_ratio
|
||||
if (flex_item.box.has_intrinsic_aspect_ratio()
|
||||
&& used_flex_basis.type == CSS::FlexBasis::Content
|
||||
&& has_definite_cross_size(child_box)) {
|
||||
TODO();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue