LibWeb/CSS: Pass Length::ResolutionContext to resolve_integer

The length resolution context might be needed even when resolving an
integer value, since it might contain a sign() function with length
values inside. This fixes a WPT subtest.
This commit is contained in:
Milo van der Tier
2024-11-29 16:41:40 +01:00
committed by Sam Atkins
parent 8bec80ac47
commit 1882a2e19b
7 changed files with 75 additions and 17 deletions

View File

@@ -119,7 +119,7 @@ class IntegerOrCalculated : public CalculatedOr<i64> {
public:
using CalculatedOr<i64>::CalculatedOr;
[[nodiscard]] i64 resolved() const;
[[nodiscard]] i64 resolved(Length::ResolutionContext const&) const;
private:
virtual i64 resolve_calculated(NonnullRefPtr<CSSMathValue> const&, Layout::Node const&) const override;