mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-27 03:37:53 +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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user