mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-23 19:42:53 +00:00
LibWeb/CSS: Add FontSourceStyleValue
This will be used by the `@font { src: ... }` descriptor once we parse descriptors as style values.
This commit is contained in:
parent
79093291b5
commit
60c536bdd5
Notes:
github-actions[bot]
2025-04-04 09:42:16 +00:00
Author: https://github.com/AtkinsSJ
Commit: 60c536bdd5
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4206
8 changed files with 186 additions and 0 deletions
|
@ -33,6 +33,7 @@
|
|||
#include <LibWeb/CSS/StyleValues/FilterValueListStyleValue.h>
|
||||
#include <LibWeb/CSS/StyleValues/FitContentStyleValue.h>
|
||||
#include <LibWeb/CSS/StyleValues/FlexStyleValue.h>
|
||||
#include <LibWeb/CSS/StyleValues/FontSourceStyleValue.h>
|
||||
#include <LibWeb/CSS/StyleValues/FrequencyStyleValue.h>
|
||||
#include <LibWeb/CSS/StyleValues/GridAutoFlowStyleValue.h>
|
||||
#include <LibWeb/CSS/StyleValues/GridTemplateAreaStyleValue.h>
|
||||
|
@ -196,6 +197,12 @@ FlexStyleValue const& CSSStyleValue::as_flex() const
|
|||
return static_cast<FlexStyleValue const&>(*this);
|
||||
}
|
||||
|
||||
FontSourceStyleValue const& CSSStyleValue::as_font_source() const
|
||||
{
|
||||
VERIFY(is_font_source());
|
||||
return static_cast<FontSourceStyleValue const&>(*this);
|
||||
}
|
||||
|
||||
FrequencyStyleValue const& CSSStyleValue::as_frequency() const
|
||||
{
|
||||
VERIFY(is_frequency());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue