mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-10-17 05:29:56 +00:00
LibWeb: Store font-width in ComputedProperties in computed form
This commit is contained in:
parent
073d10c6d1
commit
335c8c7ffb
Notes:
github-actions[bot]
2025-09-19 09:08:05 +00:00
Author: https://github.com/Calme1709
Commit: 335c8c7ffb
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/6072
Reviewed-by: https://github.com/AtkinsSJ ✅
10 changed files with 264 additions and 200 deletions
|
@ -2109,4 +2109,9 @@ double ComputedProperties::font_weight() const
|
|||
return property(PropertyID::FontWeight).as_number().number();
|
||||
}
|
||||
|
||||
Percentage ComputedProperties::font_width() const
|
||||
{
|
||||
return property(PropertyID::FontWidth).as_percentage().percentage();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue