mirror of
https://github.com/zebrajr/ladybird.git
synced 2025-12-06 00:19:53 +01:00
LibWeb: Return unanimated font-size in ComputedProperties::font_size()
1a3da3dintroduced a crash as we assumed that font-size values were always stored in their computed forms, this isn't correct for animated font-size values. As a temporary workaround until we store animated font-sizes in their computed form we will return the non-animated value - this restores the functionality prior to1a3da3d
This commit is contained in:
parent
6fcaceedd9
commit
39dc604642
|
|
@ -2052,7 +2052,8 @@ WillChange ComputedProperties::will_change() const
|
|||
|
||||
CSSPixels ComputedProperties::font_size() const
|
||||
{
|
||||
return property(PropertyID::FontSize).as_length().length().absolute_length_to_px();
|
||||
// FIXME: Respect animated font-size here once we store it in computed form
|
||||
return property(PropertyID::FontSize, WithAnimationsApplied::No).as_length().length().absolute_length_to_px();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user