mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 10:57:35 +00:00
LibWeb: Remove on-demand font resolution
Fonts are now resolved as part of the CSS cascade.
This commit is contained in:
parent
1ca33598da
commit
785ace4fc2
4 changed files with 3 additions and 166 deletions
|
@ -69,13 +69,6 @@ public:
|
|||
|
||||
Vector<CSS::Transformation> transformations() const;
|
||||
|
||||
const Gfx::Font& font(Layout::Node const& node) const
|
||||
{
|
||||
if (!m_font)
|
||||
load_font(node);
|
||||
return *m_font;
|
||||
}
|
||||
|
||||
Gfx::Font const& computed_font() const
|
||||
{
|
||||
VERIFY(m_font);
|
||||
|
@ -103,8 +96,6 @@ private:
|
|||
HashMap<CSS::PropertyID, NonnullRefPtr<StyleValue>> m_property_values;
|
||||
Optional<CSS::Overflow> overflow(CSS::PropertyID) const;
|
||||
|
||||
void load_font(Layout::Node const&) const;
|
||||
|
||||
mutable RefPtr<Gfx::Font> m_font;
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue