mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-18 00:09:44 +00:00
LibWeb: Parse @font-face
rules
This is very limited for now, only caring about `font-family` and `src`.
This commit is contained in:
parent
804b8c85e8
commit
6672c19c93
Notes:
sideshowbarker
2024-07-17 16:36:59 +09:00
Author: https://github.com/AtkinsSJ
Commit: 6672c19c93
Pull-request: https://github.com/SerenityOS/serenity/pull/13318
2 changed files with 146 additions and 32 deletions
|
@ -188,6 +188,8 @@ private:
|
|||
|
||||
[[nodiscard]] Optional<GeneralEnclosed> parse_general_enclosed(TokenStream<StyleComponentValueRule>&);
|
||||
|
||||
RefPtr<CSSRule> parse_font_face_rule(TokenStream<StyleComponentValueRule>&);
|
||||
|
||||
[[nodiscard]] RefPtr<CSSRule> convert_to_rule(NonnullRefPtr<StyleRule>);
|
||||
[[nodiscard]] RefPtr<PropertyOwningCSSStyleDeclaration> convert_to_style_declaration(Vector<DeclarationOrAtRule> declarations);
|
||||
[[nodiscard]] Optional<StyleProperty> convert_to_style_property(StyleDeclarationRule const&);
|
||||
|
@ -339,6 +341,7 @@ private:
|
|||
Optional<Supports::Feature> parse_supports_feature(TokenStream<StyleComponentValueRule>&);
|
||||
|
||||
static bool has_ignored_vendor_prefix(StringView);
|
||||
static bool is_builtin(StringView);
|
||||
|
||||
ParsingContext m_context;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue