mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 15:47:44 +00:00
LibWeb: Stub getting the initial font instead of the root one
Previously this queried the root layout-node's font, which was both wrong and could crash if the layout wasn't ready yet. Now, it's just wrong. But at least all the font-related wrongness is grouped together in StyleComputer. :^)
This commit is contained in:
parent
870b835115
commit
332799fbcb
3 changed files with 13 additions and 8 deletions
|
@ -69,6 +69,8 @@ public:
|
|||
|
||||
void invalidate_rule_cache();
|
||||
|
||||
Gfx::Font const& initial_font() const;
|
||||
|
||||
private:
|
||||
void compute_cascaded_values(StyleProperties&, DOM::Element&, Optional<CSS::Selector::PseudoElement>) const;
|
||||
void compute_font(StyleProperties&, DOM::Element const*, Optional<CSS::Selector::PseudoElement>) const;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue