mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 00:17:46 +00:00
LibWeb: Consider system fonts when looking for inexact weight match
Previously, we only considered loaded (web) fonts.
This commit is contained in:
parent
4bb907aa22
commit
69a81243f5
2 changed files with 38 additions and 12 deletions
|
@ -136,10 +136,7 @@ private:
|
|||
};
|
||||
|
||||
class FontLoader;
|
||||
struct MatchingFontCandidate {
|
||||
FontFaceKey key;
|
||||
FontLoader* loader;
|
||||
};
|
||||
struct MatchingFontCandidate;
|
||||
|
||||
ErrorOr<RefPtr<StyleProperties>> compute_style_impl(DOM::Element&, Optional<CSS::Selector::PseudoElement>, ComputeStyleMode) const;
|
||||
ErrorOr<void> compute_cascaded_values(StyleProperties&, DOM::Element&, Optional<CSS::Selector::PseudoElement>, bool& did_match_any_pseudo_element_rules, ComputeStyleMode) const;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue