mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 21:47:46 +00:00
LibWeb: Add CustomIdentStyleValue, along with parsing for it
This corresponds to the `<custom-ident>` type in CSS grammar.
This commit is contained in:
parent
b76219f702
commit
f6fae315e3
6 changed files with 61 additions and 2 deletions
|
@ -21,6 +21,7 @@
|
|||
#include <LibWeb/CSS/StyleValues/ColorStyleValue.h>
|
||||
#include <LibWeb/CSS/StyleValues/ConicGradientStyleValue.h>
|
||||
#include <LibWeb/CSS/StyleValues/ContentStyleValue.h>
|
||||
#include <LibWeb/CSS/StyleValues/CustomIdentStyleValue.h>
|
||||
#include <LibWeb/CSS/StyleValues/DisplayStyleValue.h>
|
||||
#include <LibWeb/CSS/StyleValues/EdgeStyleValue.h>
|
||||
#include <LibWeb/CSS/StyleValues/FilterValueListStyleValue.h>
|
||||
|
@ -143,6 +144,12 @@ ContentStyleValue const& StyleValue::as_content() const
|
|||
return static_cast<ContentStyleValue const&>(*this);
|
||||
}
|
||||
|
||||
CustomIdentStyleValue const& StyleValue::as_custom_ident() const
|
||||
{
|
||||
VERIFY(is_custom_ident());
|
||||
return static_cast<CustomIdentStyleValue const&>(*this);
|
||||
}
|
||||
|
||||
DisplayStyleValue const& StyleValue::as_display() const
|
||||
{
|
||||
VERIFY(is_display());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue