#include "third_party/blink/renderer/core/svg/svg_length_context.h"
#include "third_party/blink/renderer/core/css/css_math_function_value.h"
#include "third_party/blink/renderer/core/css/css_resolution_units.h"
#include "third_party/blink/renderer/core/css/resolver/style_resolver.h"
#include "third_party/blink/renderer/core/dom/node_computed_style.h"
#include "third_party/blink/renderer/core/layout/layout_object.h"
#include "third_party/blink/renderer/core/style/computed_style.h"
#include "third_party/blink/renderer/core/svg/svg_element.h"
#include "third_party/blink/renderer/core/svg/svg_length_functions.h"
#include "ui/gfx/geometry/size_f.h"
namespace blink {
namespace {
const ComputedStyle* RootElementStyle(const Element& element) { … }
}
SVGLengthConversionData::SVGLengthConversionData(const Element& context,
const ComputedStyle& style)
: … { … }
SVGLengthConversionData::SVGLengthConversionData(const LayoutObject& object)
: … { … }
SVGLengthContext::SVGLengthContext(const SVGElement* context)
: … { … }
const ComputedStyle* SVGLengthContext::ComputedStyleForLengthResolving(
const SVGElement& context) { … }
float SVGLengthContext::ResolveValue(const CSSMathFunctionValue& math_function,
SVGLengthMode mode) const { … }
double SVGLengthContext::ConvertValueToUserUnitsUnclamped(
float value,
SVGLengthMode mode,
CSSPrimitiveValue::UnitType from_unit) const { … }
float SVGLengthContext::ConvertValueToUserUnits(
float value,
SVGLengthMode mode,
CSSPrimitiveValue::UnitType from_unit) const { … }
float SVGLengthContext::ConvertValueFromUserUnits(
float value,
SVGLengthMode mode,
CSSPrimitiveValue::UnitType to_unit) const { … }
}