#include "third_party/blink/renderer/core/css/cssom/css_unit_value.h"
#include "third_party/blink/renderer/core/animation/length_property_functions.h"
#include "third_party/blink/renderer/core/css/css_math_expression_node.h"
#include "third_party/blink/renderer/core/css/css_math_function_value.h"
#include "third_party/blink/renderer/core/css/css_numeric_literal_value.h"
#include "third_party/blink/renderer/core/css/css_resolution_units.h"
#include "third_party/blink/renderer/core/css/css_syntax_definition.h"
#include "third_party/blink/renderer/core/css/cssom/css_math_invert.h"
#include "third_party/blink/renderer/core/css/cssom/css_math_max.h"
#include "third_party/blink/renderer/core/css/cssom/css_math_min.h"
#include "third_party/blink/renderer/core/css/cssom/css_math_product.h"
#include "third_party/blink/renderer/core/css/cssom/css_math_sum.h"
#include "third_party/blink/renderer/core/css/cssom/css_numeric_sum_value.h"
#include "third_party/blink/renderer/core/css/properties/css_property.h"
#include "third_party/blink/renderer/platform/bindings/exception_state.h"
#include "third_party/blink/renderer/platform/wtf/math_extras.h"
#include "third_party/blink/renderer/platform/wtf/text/string_builder.h"
namespace blink {
namespace {
CSSPrimitiveValue::UnitType ToCanonicalUnit(CSSPrimitiveValue::UnitType unit) { … }
CSSPrimitiveValue::UnitType ToCanonicalUnitIfPossible(
CSSPrimitiveValue::UnitType unit) { … }
bool IsValueOutOfRangeForProperty(CSSPropertyID property_id,
double value,
CSSPrimitiveValue::UnitType unit) { … }
}
CSSUnitValue* CSSUnitValue::Create(double value,
const String& unit_name,
ExceptionState& exception_state) { … }
CSSUnitValue* CSSUnitValue::Create(double value,
CSSPrimitiveValue::UnitType unit) { … }
CSSUnitValue* CSSUnitValue::FromCSSValue(const CSSNumericLiteralValue& value) { … }
String CSSUnitValue::unit() const { … }
CSSStyleValue::StyleValueType CSSUnitValue::GetType() const { … }
CSSUnitValue* CSSUnitValue::ConvertTo(
CSSPrimitiveValue::UnitType target_unit) const { … }
std::optional<CSSNumericSumValue> CSSUnitValue::SumValue() const { … }
bool CSSUnitValue::Equals(const CSSNumericValue& other) const { … }
const CSSNumericLiteralValue* CSSUnitValue::ToCSSValue() const { … }
const CSSPrimitiveValue* CSSUnitValue::ToCSSValueWithProperty(
CSSPropertyID property_id) const { … }
CSSMathExpressionNode* CSSUnitValue::ToCalcExpressionNode() const { … }
CSSNumericValue* CSSUnitValue::Negate() { … }
CSSNumericValue* CSSUnitValue::Invert() { … }
void CSSUnitValue::BuildCSSText(Nested,
ParenLess,
StringBuilder& result) const { … }
}