mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-10-24 08:59:50 +00:00
LibWeb: Set up initial infrastructure for non-math functions in calc
There are some non-math functions (such as tree counting functions) which we should allow within `calc()`s . This commit implements the initial infrastructure for this. We don't yet parse any of these non-math functions in `parse_a_calculation` so there is no functional change.
This commit is contained in:
parent
831e471444
commit
55bcdcf824
Notes:
github-actions[bot]
2025-10-20 15:13:37 +00:00
Author: https://github.com/Calme1709
Commit: 55bcdcf824
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/6426
Reviewed-by: https://github.com/AtkinsSJ ✅
5 changed files with 89 additions and 9 deletions
|
|
@ -0,0 +1,20 @@
|
|||
/*
|
||||
* Copyright (c) 2025, Callum Law <callumlaw1709@outlook.com>
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <LibWeb/CSS/StyleValues/StyleValue.h>
|
||||
|
||||
namespace Web::CSS {
|
||||
|
||||
class AbstractNonMathCalcFunctionStyleValue : public StyleValue {
|
||||
using StyleValue::StyleValue;
|
||||
|
||||
public:
|
||||
virtual RefPtr<CalculationNode const> resolve_to_calculation_node(CalculationContext const&, CalculationResolutionContext const&) const = 0;
|
||||
};
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue