mirror of
https://github.com/servo/servo.git
synced 2025-08-09 07:25:35 +01:00
Allow creating a ContentSizes
from Au
(#33208)
No change in behavior, it just simplies some code a little bit. Signed-off-by: Oriol Brufau <obrufau@igalia.com>
This commit is contained in:
parent
dbd0a79b3e
commit
50eb69a7e0
4 changed files with 21 additions and 36 deletions
|
@ -255,14 +255,10 @@ impl ReplacedContent {
|
|||
// FIXME: min/max-content of replaced elements is not defined in
|
||||
// https://dbaron.org/css/intrinsic/
|
||||
// This seems sensible?
|
||||
let inline = self
|
||||
.flow_relative_intrinsic_size(style)
|
||||
self.flow_relative_intrinsic_size(style)
|
||||
.inline
|
||||
.unwrap_or(Au::zero());
|
||||
ContentSizes {
|
||||
min_content: inline,
|
||||
max_content: inline,
|
||||
}
|
||||
.unwrap_or(Au::zero())
|
||||
.into()
|
||||
}
|
||||
|
||||
pub fn make_fragments(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue