mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-01 05:39:11 +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
Notes:
sideshowbarker
2024-07-16 20:50:47 +09:00
Author: https://github.com/AtkinsSJ
Commit: 3c171593f8
Pull-request: https://github.com/SerenityOS/serenity/pull/18563
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