#include "third_party/blink/renderer/core/css/cssom/css_math_sum.h"
#include "base/ranges/algorithm.h"
#include "third_party/blink/renderer/core/css/css_math_expression_node.h"
#include "third_party/blink/renderer/core/css/cssom/css_math_negate.h"
#include "third_party/blink/renderer/platform/wtf/text/string_builder.h"
namespace blink {
namespace {
CSSNumericValueType NumericTypeFromUnitMap(
const CSSNumericSumValue::UnitMap& units) { … }
bool CanCreateNumericTypeFromSumValue(const CSSNumericSumValue& sum) { … }
struct UnitMapComparator { … };
bool operator==(const CSSNumericSumValue::Term& a, const UnitMapComparator& b) { … }
}
CSSMathSum* CSSMathSum::Create(const HeapVector<Member<V8CSSNumberish>>& args,
ExceptionState& exception_state) { … }
CSSMathSum* CSSMathSum::Create(CSSNumericValueVector values,
ExceptionState& exception_state) { … }
std::optional<CSSNumericSumValue> CSSMathSum::SumValue() const { … }
CSSMathExpressionNode* CSSMathSum::ToCalcExpressionNode() const { … }
void CSSMathSum::BuildCSSText(Nested nested,
ParenLess paren_less,
StringBuilder& result) const { … }
}