mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 15:47:44 +00:00
LibWeb: Add EdgeStyleValue
This represents a single edge and offset, this will be needed for the values of background-position-x/y.
This commit is contained in:
parent
d5e61168b2
commit
2a659693bc
6 changed files with 87 additions and 0 deletions
|
@ -20,6 +20,7 @@
|
|||
#include <LibWeb/CSS/StyleValues/ColorStyleValue.h>
|
||||
#include <LibWeb/CSS/StyleValues/ConicGradientStyleValue.h>
|
||||
#include <LibWeb/CSS/StyleValues/ContentStyleValue.h>
|
||||
#include <LibWeb/CSS/StyleValues/EdgeStyleValue.h>
|
||||
#include <LibWeb/CSS/StyleValues/FilterValueListStyleValue.h>
|
||||
#include <LibWeb/CSS/StyleValues/FlexFlowStyleValue.h>
|
||||
#include <LibWeb/CSS/StyleValues/FlexStyleValue.h>
|
||||
|
@ -138,6 +139,12 @@ ContentStyleValue const& StyleValue::as_content() const
|
|||
return static_cast<ContentStyleValue const&>(*this);
|
||||
}
|
||||
|
||||
EdgeStyleValue const& StyleValue::as_edge() const
|
||||
{
|
||||
VERIFY(is_edge());
|
||||
return static_cast<EdgeStyleValue const&>(*this);
|
||||
}
|
||||
|
||||
FilterValueListStyleValue const& StyleValue::as_filter_value_list() const
|
||||
{
|
||||
VERIFY(is_filter_value_list());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue