#include "third_party/blink/renderer/platform/geometry/float_rounded_rect.h"
#include <algorithm>
#include <cmath>
#include "third_party/blink/renderer/platform/geometry/infinite_int_rect.h"
#include "third_party/blink/renderer/platform/wtf/text/wtf_string.h"
#include "ui/gfx/geometry/insets_f.h"
#include "ui/gfx/geometry/quad_f.h"
namespace blink {
FloatRoundedRect::FloatRoundedRect(float x, float y, float width, float height)
: … { … }
FloatRoundedRect::FloatRoundedRect(const gfx::RectF& rect, const Radii& radii)
: … { … }
FloatRoundedRect::FloatRoundedRect(const gfx::Rect& rect, const Radii& radii)
: … { … }
FloatRoundedRect::FloatRoundedRect(const gfx::RectF& rect,
const gfx::SizeF& top_left,
const gfx::SizeF& top_right,
const gfx::SizeF& bottom_left,
const gfx::SizeF& bottom_right)
: … { … }
FloatRoundedRect::FloatRoundedRect(const gfx::RRectF& r)
: … { … }
void FloatRoundedRect::Radii::SetMinimumRadius(float minimum_radius) { … }
std::optional<float> FloatRoundedRect::Radii::UniformRadius() const { … }
void FloatRoundedRect::Radii::Scale(float factor) { … }
void FloatRoundedRect::Radii::Outset(const gfx::OutsetsF& outsets) { … }
static void OutsetCornerForMarginOrShadow(gfx::SizeF& corner,
float width_outset,
float height_outset) { … }
void FloatRoundedRect::Radii::OutsetForMarginOrShadow(
const gfx::OutsetsF& outsets) { … }
void FloatRoundedRect::Radii::OutsetForShapeMargin(float outset) { … }
static inline float CornerRectIntercept(float y,
const gfx::RectF& corner_rect) { … }
bool FloatRoundedRect::XInterceptsAtY(float y,
float& min_x_intercept,
float& max_x_intercept) const { … }
void FloatRoundedRect::Outset(const gfx::OutsetsF& outsets) { … }
void FloatRoundedRect::OutsetForMarginOrShadow(const gfx::OutsetsF& outsets) { … }
void FloatRoundedRect::OutsetForShapeMargin(float outset) { … }
bool FloatRoundedRect::IntersectsQuad(const gfx::QuadF& quad) const { … }
void FloatRoundedRect::ConstrainRadii() { … }
bool FloatRoundedRect::IsRenderable() const { … }
std::ostream& operator<<(std::ostream& ostream, const FloatRoundedRect& rect) { … }
std::ostream& operator<<(std::ostream& ostream,
const FloatRoundedRect::Radii& radii) { … }
String FloatRoundedRect::Radii::ToString() const { … }
String FloatRoundedRect::ToString() const { … }
}