#include "third_party/blink/renderer/core/layout/svg/transform_helper.h"
#include "third_party/blink/public/mojom/use_counter/metrics/web_feature.mojom-blink.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/layout/svg/svg_resources.h"
#include "third_party/blink/renderer/core/style/computed_style.h"
#include "third_party/blink/renderer/core/style/reference_offset_path_operation.h"
#include "third_party/blink/renderer/core/svg/svg_element.h"
#include "third_party/blink/renderer/core/svg/svg_length_functions.h"
#include "third_party/blink/renderer/platform/instrumentation/use_counter.h"
#include "ui/gfx/geometry/rect_f.h"
#include "ui/gfx/geometry/size_f.h"
namespace blink {
namespace {
bool StrokeBoundingBoxMayHaveChanged(const ComputedStyle& old_style,
const ComputedStyle& style) { … }
}
static inline bool TransformOriginIsFixed(const ComputedStyle& style) { … }
void TransformHelper::UpdateOffsetPath(SVGElement& element,
const ComputedStyle* old_style) { … }
bool TransformHelper::DependsOnReferenceBox(const ComputedStyle& style) { … }
bool TransformHelper::UpdateReferenceBoxDependency(
LayoutObject& layout_object) { … }
void TransformHelper::UpdateReferenceBoxDependency(
LayoutObject& layout_object,
bool transform_uses_reference_box) { … }
bool TransformHelper::CheckReferenceBoxDependencies(
const ComputedStyle& old_style,
const ComputedStyle& style) { … }
gfx::RectF TransformHelper::ComputeReferenceBox(
const LayoutObject& layout_object) { … }
AffineTransform TransformHelper::ComputeTransform(
UseCounter& use_counter,
const ComputedStyle& style,
const gfx::RectF& reference_box,
ComputedStyle::ApplyTransformOrigin apply_transform_origin) { … }
AffineTransform TransformHelper::ComputeTransformIncludingMotion(
const SVGElement& element,
const gfx::RectF& reference_box) { … }
AffineTransform TransformHelper::ComputeTransformIncludingMotion(
const SVGElement& element) { … }
gfx::PointF TransformHelper::ComputeTransformOrigin(
const ComputedStyle& style,
const gfx::RectF& reference_box) { … }
}