mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 13:57:35 +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:
parent
0679b4e0b9
commit
3c171593f8
2 changed files with 15 additions and 40 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue