mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-03 15:41:57 +00:00
LibWeb/CSS: Implement pending-substitution value
This is a special value temporarily assigned to longhands when their shorthand is unresolved, and then later replaced once that is resolved.
This commit is contained in:
parent
59e8a669de
commit
398d2f9981
Notes:
github-actions[bot]
2025-05-14 10:48:04 +00:00
Author: https://github.com/AtkinsSJ
Commit: 398d2f9981
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4209
Reviewed-by: https://github.com/awesomekling
4 changed files with 48 additions and 0 deletions
|
@ -48,6 +48,7 @@
|
|||
#include <LibWeb/CSS/StyleValues/MathDepthStyleValue.h>
|
||||
#include <LibWeb/CSS/StyleValues/NumberStyleValue.h>
|
||||
#include <LibWeb/CSS/StyleValues/OpenTypeTaggedStyleValue.h>
|
||||
#include <LibWeb/CSS/StyleValues/PendingSubstitutionStyleValue.h>
|
||||
#include <LibWeb/CSS/StyleValues/PercentageStyleValue.h>
|
||||
#include <LibWeb/CSS/StyleValues/PositionStyleValue.h>
|
||||
#include <LibWeb/CSS/StyleValues/RadialGradientStyleValue.h>
|
||||
|
@ -295,6 +296,12 @@ OpenTypeTaggedStyleValue const& CSSStyleValue::as_open_type_tagged() const
|
|||
return static_cast<OpenTypeTaggedStyleValue const&>(*this);
|
||||
}
|
||||
|
||||
PendingSubstitutionStyleValue const& CSSStyleValue::as_pending_substitution() const
|
||||
{
|
||||
VERIFY(is_pending_substitution());
|
||||
return static_cast<PendingSubstitutionStyleValue const&>(*this);
|
||||
}
|
||||
|
||||
PercentageStyleValue const& CSSStyleValue::as_percentage() const
|
||||
{
|
||||
VERIFY(is_percentage());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue