1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 06:47:34 +00:00

LibWeb: Move calc()-resolution code from Length to CalculatedStyleValue

The code is unchanged, just moved.
This commit is contained in:
Sam Atkins 2022-01-24 17:38:29 +00:00 committed by Andreas Kling
parent ee61739e0a
commit db04b5687d
4 changed files with 115 additions and 120 deletions

View file

@ -746,6 +746,7 @@ public:
String to_string() const override { return m_expression_string; }
NonnullOwnPtr<CalcSum> const& expression() const { return m_expression; }
Optional<Length> resolve_length(Layout::Node const& layout_node) const;
private:
explicit CalculatedStyleValue(String const& expression_string, NonnullOwnPtr<CalcSum> calc_sum)