mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-10-17 05:29:56 +00:00
LibWeb: Separate relative sizes from absolute_size_mapping
Having relative sizes handled in this function was misleading
This commit is contained in:
parent
1ca511b627
commit
d6754307f9
Notes:
github-actions[bot]
2025-09-19 09:09:15 +00:00
Author: https://github.com/Calme1709
Commit: d6754307f9
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/6072
Reviewed-by: https://github.com/AtkinsSJ ✅
5 changed files with 88 additions and 42 deletions
|
@ -175,7 +175,8 @@ public:
|
|||
void unload_fonts_from_sheet(CSSStyleSheet&);
|
||||
|
||||
static CSSPixels default_user_font_size();
|
||||
static CSSPixelFraction absolute_size_mapping(Keyword);
|
||||
static CSSPixels absolute_size_mapping(AbsoluteSize, CSSPixels default_font_size);
|
||||
static CSSPixels relative_size_mapping(RelativeSize, CSSPixels inherited_font_size);
|
||||
RefPtr<Gfx::FontCascadeList const> compute_font_for_style_values(Optional<DOM::AbstractElement>, StyleValue const& font_family, StyleValue const& font_size, StyleValue const& font_style, StyleValue const& font_weight, StyleValue const& font_stretch, int math_depth = 0) const;
|
||||
|
||||
[[nodiscard]] RefPtr<StyleValue const> recascade_font_size_if_needed(DOM::AbstractElement, CascadedProperties&) const;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue