summaryrefslogtreecommitdiff
path: root/Userland
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2021-10-14 19:42:09 +0200
committerAndreas Kling <kling@serenityos.org>2021-10-14 19:42:09 +0200
commit410e2b43cee873048c571694e30d3582e69352db (patch)
treeb4de5088ca8759e0a794c8ad485722b0447e1cc9 /Userland
parenta58cc2eeb40e5380963fbd809758703bcf6ae44c (diff)
downloadserenity-410e2b43cee873048c571694e30d3582e69352db.zip
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.
Diffstat (limited to 'Userland')
-rw-r--r--Userland/Libraries/LibWeb/Layout/FlexFormattingContext.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/Userland/Libraries/LibWeb/Layout/FlexFormattingContext.cpp b/Userland/Libraries/LibWeb/Layout/FlexFormattingContext.cpp
index af1ccdbad4..adbf921de5 100644
--- a/Userland/Libraries/LibWeb/Layout/FlexFormattingContext.cpp
+++ b/Userland/Libraries/LibWeb/Layout/FlexFormattingContext.cpp
@@ -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();