#include "third_party/blink/renderer/core/svg/svg_length_functions.h"
#include <cmath>
#include "third_party/blink/renderer/core/layout/svg/layout_svg_hidden_container.h"
#include "third_party/blink/renderer/core/layout/svg/layout_svg_root.h"
#include "third_party/blink/renderer/core/layout/svg/layout_svg_viewport_container.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_symbol_element.h"
#include "third_party/blink/renderer/platform/geometry/length.h"
#include "third_party/blink/renderer/platform/geometry/length_functions.h"
#include "ui/gfx/geometry/size_f.h"
#include "ui/gfx/geometry/vector2d_f.h"
namespace blink {
SVGViewportResolver::SVGViewportResolver(const SVGElement& context)
: … { … }
gfx::SizeF SVGViewportResolver::ResolveViewport() const { … }
float SVGViewportResolver::ViewportDimension(SVGLengthMode mode) const { … }
float ValueForLength(const Length& length, float zoom, float dimension) { … }
float ValueForLength(const Length& length,
const ComputedStyle& style,
float dimension) { … }
float ValueForLength(const Length& length,
const SVGViewportResolver& viewport_resolver,
float zoom,
SVGLengthMode mode) { … }
float ValueForLength(const Length& length,
const SVGViewportResolver& viewport_resolver,
const ComputedStyle& style,
SVGLengthMode mode) { … }
float ValueForLength(const UnzoomedLength& unzoomed_length,
const SVGViewportResolver& viewport_resolver,
SVGLengthMode mode) { … }
gfx::Vector2dF VectorForLengthPair(const Length& x_length,
const Length& y_length,
float zoom,
const gfx::SizeF& viewport_size) { … }
gfx::Vector2dF VectorForLengthPair(const Length& x_length,
const Length& y_length,
const SVGViewportResolver& viewport_resolver,
const ComputedStyle& style) { … }
}