mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-05 06:32:30 +02: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:
Notes:
github-actions[bot]
2025-05-14 10:48:04 +00:00
Author: https://github.com/AtkinsSJ Commit: https://github.com/LadybirdBrowser/ladybird/commit/398d2f9981b Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4209 Reviewed-by: https://github.com/awesomekling
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user