mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 15:17:36 +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
9 changed files with 209 additions and 13 deletions
|
@ -19,6 +19,7 @@
|
|||
#include <LibWeb/CSS/StyleValues/BorderStyleValue.h>
|
||||
#include <LibWeb/CSS/StyleValues/CalculatedStyleValue.h>
|
||||
#include <LibWeb/CSS/StyleValues/ColorStyleValue.h>
|
||||
#include <LibWeb/CSS/StyleValues/CompositeStyleValue.h>
|
||||
#include <LibWeb/CSS/StyleValues/ConicGradientStyleValue.h>
|
||||
#include <LibWeb/CSS/StyleValues/ContentStyleValue.h>
|
||||
#include <LibWeb/CSS/StyleValues/CustomIdentStyleValue.h>
|
||||
|
@ -132,6 +133,12 @@ ColorStyleValue const& StyleValue::as_color() const
|
|||
return static_cast<ColorStyleValue const&>(*this);
|
||||
}
|
||||
|
||||
CompositeStyleValue const& StyleValue::as_composite() const
|
||||
{
|
||||
VERIFY(is_composite());
|
||||
return static_cast<CompositeStyleValue const&>(*this);
|
||||
}
|
||||
|
||||
ConicGradientStyleValue const& StyleValue::as_conic_gradient() const
|
||||
{
|
||||
VERIFY(is_conic_gradient());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue