mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-08 09:09:43 +00:00
LibWeb: Parse oblique font-style
with an angle value
This commit is contained in:
parent
e537e426c1
commit
c0f9b11070
Notes:
github-actions[bot]
2025-05-03 10:06:24 +00:00
Author: https://github.com/tcl3
Commit: c0f9b11070
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4552
Reviewed-by: https://github.com/konradekk
13 changed files with 172 additions and 31 deletions
|
@ -107,6 +107,7 @@ public:
|
|||
FitContent,
|
||||
Flex,
|
||||
FontSource,
|
||||
FontStyle,
|
||||
FontVariant,
|
||||
Frequency,
|
||||
GridAutoFlow,
|
||||
|
@ -234,6 +235,10 @@ public:
|
|||
FontSourceStyleValue const& as_font_source() const;
|
||||
FontSourceStyleValue& as_font_source() { return const_cast<FontSourceStyleValue&>(const_cast<CSSStyleValue const&>(*this).as_font_source()); }
|
||||
|
||||
bool is_font_style() const { return type() == Type::FontStyle; }
|
||||
FontStyleStyleValue const& as_font_style() const;
|
||||
FontStyleStyleValue& as_font_style() { return const_cast<FontStyleStyleValue&>(const_cast<CSSStyleValue const&>(*this).as_font_style()); }
|
||||
|
||||
bool is_frequency() const { return type() == Type::Frequency; }
|
||||
FrequencyStyleValue const& as_frequency() const;
|
||||
FrequencyStyleValue& as_frequency() { return const_cast<FrequencyStyleValue&>(const_cast<CSSStyleValue const&>(*this).as_frequency()); }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue