mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Use the proper aspect ratio in flexbox (#33256)
When computing the automatic minimum size, flex layout was using the natural aspect ratio, ignoring the `aspect-ratio` property. `ReplacedContent::inline_size_over_block_size_intrinsic_ratio()` is now made private to avoid more accidental uses. Signed-off-by: Oriol Brufau <obrufau@igalia.com> Co-authored-by: Martin Robinson <mrobinson@igalia.com>
This commit is contained in:
parent
13cbcf614a
commit
cd8b803368
4 changed files with 57 additions and 28 deletions
|
@ -238,7 +238,7 @@ impl ReplacedContent {
|
|||
LogicalVec2::from_physical_size(&intrinsic_size, style.effective_writing_mode())
|
||||
}
|
||||
|
||||
pub(crate) fn inline_size_over_block_size_intrinsic_ratio(
|
||||
fn inline_size_over_block_size_intrinsic_ratio(
|
||||
&self,
|
||||
style: &ComputedValues,
|
||||
) -> Option<CSSFloat> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue