LibWeb: Clip underlying Painter in CRC2D::clip()

This commit is contained in:
Andreas Kling 2024-08-15 07:19:25 +02:00 committed by Andreas Kling
commit 5aeb8ebebc
Notes: github-actions[bot] 2024-08-20 07:37:46 +00:00
5 changed files with 15 additions and 14 deletions

View file

@ -24,11 +24,6 @@ namespace Web::HTML {
// https://html.spec.whatwg.org/multipage/canvas.html#canvasstate
class CanvasState {
public:
struct ClipPath {
Gfx::Path path;
Gfx::WindingRule winding_rule;
};
virtual ~CanvasState() = default;
void save();
@ -87,7 +82,6 @@ public:
bool image_smoothing_enabled { true };
Bindings::ImageSmoothingQuality image_smoothing_quality { Bindings::ImageSmoothingQuality::Low };
float global_alpha = { 1 };
Optional<ClipPath> clip;
RefPtr<CSS::CSSStyleValue> font_style_value { nullptr };
RefPtr<Gfx::Font const> current_font { nullptr };
Bindings::CanvasTextAlign text_align { Bindings::CanvasTextAlign::Start };