mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 19:17:44 +00:00
LibHTML: Add StyleProperties::line_height()
We currently hard-code the line height to 140% of the font glyph height and this patch doesn't fix the hard-coding, but at least moves it out of LayoutText and into StyleProperties where it can be re-used until the day we go and do a proper implementation of CSS line-height. :^)
This commit is contained in:
parent
3cef6a5cac
commit
92b6a7a18f
3 changed files with 9 additions and 2 deletions
|
@ -32,6 +32,8 @@ public:
|
|||
return *m_font;
|
||||
}
|
||||
|
||||
int line_height() const;
|
||||
|
||||
private:
|
||||
HashMap<unsigned, NonnullRefPtr<StyleValue>> m_property_values;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue