diff options
author | Sam Atkins <atkinssj@serenityos.org> | 2022-01-27 14:47:39 +0000 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2022-02-04 13:52:02 +0100 |
commit | b54cd17c1ee7eb0a46af8feac66ca4180df8416d (patch) | |
tree | 63693efd5e0a7baae0e8d5e41880795ae538e032 /Userland/Libraries/LibWeb/CSS/StyleValue.h | |
parent | ce0de4b2b4cddf199011e4edf311580a117cc5cd (diff) | |
download | serenity-b54cd17c1ee7eb0a46af8feac66ca4180df8416d.zip |
LibWeb: Allow percentage tokens again when parsing calc()
I unintentionally broke this in my LengthPercentage PR, but it was not
convenient to fix until now.
Diffstat (limited to 'Userland/Libraries/LibWeb/CSS/StyleValue.h')
-rw-r--r-- | Userland/Libraries/LibWeb/CSS/StyleValue.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibWeb/CSS/StyleValue.h b/Userland/Libraries/LibWeb/CSS/StyleValue.h index 5c753ac4f2..be0c3bee44 100644 --- a/Userland/Libraries/LibWeb/CSS/StyleValue.h +++ b/Userland/Libraries/LibWeb/CSS/StyleValue.h @@ -707,7 +707,7 @@ public: }; struct CalcValue { - Variant<float, CSS::Length, NonnullOwnPtr<CalcSum>> value; + Variant<float, Length, Percentage, NonnullOwnPtr<CalcSum>> value; Optional<ResolvedType> resolved_type() const; CalculationResult resolve(Layout::Node const*, Length const& percentage_basis) const; }; |