1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 22:57:44 +00:00

LibWeb: Merge StyleComputer root-element font-metric calculation methods

This saves us from doing a lot of the same work multiple times, when we
want both the root font size and its line height.
This commit is contained in:
Sam Atkins 2023-04-28 16:42:21 +01:00 committed by Andreas Kling
parent 0679b4e0b9
commit 3c171593f8
2 changed files with 15 additions and 40 deletions

View file

@ -102,8 +102,7 @@ private:
void for_each_stylesheet(CascadeOrigin, Callback) const;
CSSPixelRect viewport_rect() const;
CSSPixels root_element_font_size() const;
CSSPixels root_element_line_height() const;
Length::FontMetrics root_element_font_metrics() const;
CSSPixels parent_or_root_element_line_height(DOM::Element const*, Optional<CSS::Selector::PseudoElement>) const;
struct MatchingRuleSet {