1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 16:37:35 +00:00

LibWeb: Split of compute font logic in StyleComputer

This commit is contained in:
Bastiaan van der Plaat 2023-08-07 21:48:18 +02:00 committed by Andreas Kling
parent cc1f7d385c
commit b05fe22d39
2 changed files with 44 additions and 36 deletions

View file

@ -91,6 +91,8 @@ public:
void load_fonts_from_sheet(CSSStyleSheet const&);
RefPtr<Gfx::Font const> compute_font_for_style_values(DOM::Element const* element, Optional<CSS::Selector::PseudoElement> pseudo_element, StyleValue const& font_family, StyleValue const& font_size, StyleValue const& font_style, StyleValue const& font_weight, StyleValue const& font_stretch) const;
struct AnimationKey {
CSS::CSSStyleDeclaration const* source_declaration;
DOM::Element const* element;