mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-09 19:16:02 +00:00
LibWeb: Add CSS CompositeStyleValue
This represents the value of properties assigned via their shorthands, and is expanded when computing actual property values.
This commit is contained in:
parent
49bb04a6ba
commit
279924242d
Notes:
sideshowbarker
2024-07-17 04:01:41 +09:00
Author: https://github.com/alimpfard
Commit: 279924242d
Pull-request: https://github.com/SerenityOS/serenity/pull/19050
Reviewed-by: https://github.com/AtkinsSJ
Reviewed-by: https://github.com/Lubrsi
9 changed files with 209 additions and 13 deletions
|
@ -96,6 +96,7 @@ public:
|
|||
BorderRadiusShorthand,
|
||||
Calculated,
|
||||
Color,
|
||||
Composite,
|
||||
ConicGradient,
|
||||
Content,
|
||||
CustomIdent,
|
||||
|
@ -149,6 +150,7 @@ public:
|
|||
bool is_border_radius_shorthand() const { return type() == Type::BorderRadiusShorthand; }
|
||||
bool is_calculated() const { return type() == Type::Calculated; }
|
||||
bool is_color() const { return type() == Type::Color; }
|
||||
bool is_composite() const { return type() == Type::Composite; }
|
||||
bool is_conic_gradient() const { return type() == Type::ConicGradient; }
|
||||
bool is_content() const { return type() == Type::Content; }
|
||||
bool is_custom_ident() const { return type() == Type::CustomIdent; }
|
||||
|
@ -201,6 +203,7 @@ public:
|
|||
BorderStyleValue const& as_border() const;
|
||||
CalculatedStyleValue const& as_calculated() const;
|
||||
ColorStyleValue const& as_color() const;
|
||||
CompositeStyleValue const& as_composite() const;
|
||||
ConicGradientStyleValue const& as_conic_gradient() const;
|
||||
ContentStyleValue const& as_content() const;
|
||||
CustomIdentStyleValue const& as_custom_ident() const;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue