#include "third_party/blink/renderer/platform/geometry/calculation_expression_node.h"
#include <cfloat>
#include <numeric>
#include "base/memory/scoped_refptr.h"
#include "base/notreached.h"
#include "base/ranges/algorithm.h"
#include "third_party/blink/renderer/platform/geometry/length.h"
#include "third_party/blink/renderer/platform/geometry/length_functions.h"
#include "third_party/blink/renderer/platform/geometry/math_functions.h"
namespace blink {
float CalculationExpressionNumberNode::Evaluate(
float max_value,
const Length::EvaluationInput&) const { … }
bool CalculationExpressionNumberNode::Equals(
const CalculationExpressionNode& other) const { … }
scoped_refptr<const CalculationExpressionNode>
CalculationExpressionNumberNode::Zoom(double) const { … }
#if DCHECK_IS_ON()
CalculationExpressionNode::ResultType
CalculationExpressionNumberNode::ResolvedResultType() const { … }
#endif
CalculationExpressionSizingKeywordNode::CalculationExpressionSizingKeywordNode(
Keyword keyword)
: … { … }
float CalculationExpressionSizingKeywordNode::Evaluate(
float max_value,
const Length::EvaluationInput& input) const { … }
float CalculationExpressionPixelsAndPercentNode::Evaluate(
float max_value,
const Length::EvaluationInput&) const { … }
bool CalculationExpressionPixelsAndPercentNode::Equals(
const CalculationExpressionNode& other) const { … }
scoped_refptr<const CalculationExpressionNode>
CalculationExpressionPixelsAndPercentNode::Zoom(double factor) const { … }
#if DCHECK_IS_ON()
CalculationExpressionNode::ResultType
CalculationExpressionPixelsAndPercentNode::ResolvedResultType() const { … }
#endif
scoped_refptr<const CalculationExpressionNode>
CalculationExpressionOperationNode::CreateSimplified(Children&& children,
CalculationOperator op) { … }
CalculationExpressionOperationNode::CalculationExpressionOperationNode(
Children&& children,
CalculationOperator op)
: … { … }
float CalculationExpressionOperationNode::Evaluate(
float max_value,
const Length::EvaluationInput& input) const { … }
bool CalculationExpressionOperationNode::Equals(
const CalculationExpressionNode& other) const { … }
scoped_refptr<const CalculationExpressionNode>
CalculationExpressionOperationNode::Zoom(double factor) const { … }
bool CalculationExpressionOperationNode::HasMinContent() const { … }
bool CalculationExpressionOperationNode::HasMaxContent() const { … }
bool CalculationExpressionOperationNode::HasFitContent() const { … }
#if DCHECK_IS_ON()
CalculationExpressionNode::ResultType
CalculationExpressionOperationNode::ResolvedResultType() const { … }
#endif
}