2022-07-17 19:47:43 +01:00
|
|
|
/*
|
2023-01-10 01:07:06 +00:00
|
|
|
* Copyright (c) 2023, MacDue <macdue@dueutil.tech>
|
2022-07-17 19:47:43 +01:00
|
|
|
*
|
|
|
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include <AK/Span.h>
|
|
|
|
|
#include <AK/Vector.h>
|
|
|
|
|
#include <LibGfx/Color.h>
|
2023-02-25 10:42:45 -07:00
|
|
|
#include <LibGfx/Gradients.h>
|
2022-07-17 19:47:43 +01:00
|
|
|
#include <LibWeb/Forward.h>
|
2023-10-15 04:27:48 +02:00
|
|
|
#include <LibWeb/Painting/GradientData.h>
|
2022-07-17 19:47:43 +01:00
|
|
|
#include <LibWeb/Painting/PaintContext.h>
|
|
|
|
|
|
|
|
|
|
namespace Web::Painting {
|
|
|
|
|
|
2025-02-18 16:13:37 +00:00
|
|
|
LinearGradientData resolve_linear_gradient_data(Layout::NodeWithStyle const&, CSSPixelSize, CSS::LinearGradientStyleValue const&);
|
|
|
|
|
ConicGradientData resolve_conic_gradient_data(Layout::NodeWithStyle const&, CSS::ConicGradientStyleValue const&);
|
|
|
|
|
RadialGradientData resolve_radial_gradient_data(Layout::NodeWithStyle const&, CSSPixelSize, CSS::RadialGradientStyleValue const&);
|
2022-07-17 19:47:43 +01:00
|
|
|
|
|
|
|
|
}
|