mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-05 16:41:52 +00:00
LibWeb/CSS: Implement guaranteed-invalid value
This is a special value produced when var/attr substitution fails, and is also the initial value for custom properties.
This commit is contained in:
parent
804c1eeeed
commit
d1dadd43a1
Notes:
github-actions[bot]
2025-05-14 10:48:18 +00:00
Author: https://github.com/AtkinsSJ
Commit: d1dadd43a1
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4209
Reviewed-by: https://github.com/awesomekling
4 changed files with 46 additions and 0 deletions
|
@ -40,6 +40,7 @@
|
|||
#include <LibWeb/CSS/StyleValues/GridTemplateAreaStyleValue.h>
|
||||
#include <LibWeb/CSS/StyleValues/GridTrackPlacementStyleValue.h>
|
||||
#include <LibWeb/CSS/StyleValues/GridTrackSizeListStyleValue.h>
|
||||
#include <LibWeb/CSS/StyleValues/GuaranteedInvalidStyleValue.h>
|
||||
#include <LibWeb/CSS/StyleValues/ImageStyleValue.h>
|
||||
#include <LibWeb/CSS/StyleValues/IntegerStyleValue.h>
|
||||
#include <LibWeb/CSS/StyleValues/LengthStyleValue.h>
|
||||
|
@ -240,6 +241,12 @@ GridTrackSizeListStyleValue const& CSSStyleValue::as_grid_track_size_list() cons
|
|||
return static_cast<GridTrackSizeListStyleValue const&>(*this);
|
||||
}
|
||||
|
||||
GuaranteedInvalidStyleValue const& CSSStyleValue::as_guaranteed_invalid() const
|
||||
{
|
||||
VERIFY(is_guaranteed_invalid());
|
||||
return static_cast<GuaranteedInvalidStyleValue const&>(*this);
|
||||
}
|
||||
|
||||
CSSKeywordValue const& CSSStyleValue::as_keyword() const
|
||||
{
|
||||
VERIFY(is_keyword());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue