#include "third_party/blink/renderer/core/paint/decoration_line_painter.h"
#include "third_party/blink/renderer/core/paint/paint_auto_dark_mode.h"
#include "third_party/blink/renderer/platform/graphics/graphics_context.h"
#include "third_party/blink/renderer/platform/graphics/graphics_context_state_saver.h"
#include "third_party/blink/renderer/platform/graphics/paint/paint_shader.h"
#include "third_party/blink/renderer/platform/graphics/styled_stroke_data.h"
namespace blink {
namespace {
float RoundDownThickness(float stroke_thickness) { … }
gfx::RectF DecorationRect(gfx::PointF pt, float width, float stroke_thickness) { … }
gfx::RectF SnapYAxis(const gfx::RectF& decoration_rect) { … }
std::pair<gfx::Point, gfx::Point> GetSnappedPointsForTextLine(
const gfx::RectF& decoration_rect) { … }
bool ShouldUseStrokeForTextLine(StrokeStyle stroke_style) { … }
}
void DecorationLinePainter::DrawLineForText(
GraphicsContext& context,
const gfx::PointF& pt,
float width,
const StyledStrokeData& styled_stroke,
const AutoDarkMode& auto_dark_mode,
const cc::PaintFlags* paint_flags) { … }
Path DecorationLinePainter::GetPathForTextLine(const gfx::PointF& pt,
float width,
float stroke_thickness,
StrokeStyle stroke_style) { … }
void DecorationLinePainter::Paint(const Color& color,
const cc::PaintFlags* flags) { … }
void DecorationLinePainter::PaintWavyTextDecoration(
const AutoDarkMode& auto_dark_mode) { … }
}