#include "third_party/blink/renderer/core/paint/svg_object_painter.h"
#include "cc/paint/color_filter.h"
#include "third_party/blink/renderer/core/layout/svg/layout_svg_resource_paint_server.h"
#include "third_party/blink/renderer/core/layout/svg/svg_resources.h"
#include "third_party/blink/renderer/core/paint/paint_auto_dark_mode.h"
#include "third_party/blink/renderer/core/paint/paint_info.h"
namespace blink {
namespace {
bool ApplyPaintResource(
const SvgContextPaints::ContextPaint& context_paint,
const AffineTransform* additional_paint_server_transform,
cc::PaintFlags& flags) { … }
void ApplyColorInterpolation(PaintFlags paint_flags,
const ComputedStyle& style,
cc::PaintFlags& flags) { … }
}
bool SVGObjectPainter::HasVisibleStroke(
const ComputedStyle& style,
const SvgContextPaints* context_paints) { … }
bool SVGObjectPainter::HasFill(const ComputedStyle& style,
const SvgContextPaints* context_paints) { … }
void SVGObjectPainter::PaintResourceSubtree(GraphicsContext& context,
PaintFlags additional_flags) { … }
SvgContextPaints::ContextPaint SVGObjectPainter::ResolveContextPaint(
const SVGPaint& initial_paint) { … }
std::optional<AffineTransform> SVGObjectPainter::ResolveContextTransform(
const SVGPaint& initial_paint,
const AffineTransform* additional_paint_server_transform) { … }
bool SVGObjectPainter::PreparePaint(
PaintFlags paint_flags,
const ComputedStyle& style,
LayoutSVGResourceMode resource_mode,
cc::PaintFlags& flags,
const AffineTransform* additional_paint_server_transform) { … }
}