LibGfx+LibWeb: Move HTML::CanvasPathClipper to Gfx::PathClipper

This does not depend on anything outside of LibGfx, and seems like it
may be useful elsewhere.

No behaviour change.
This commit is contained in:
MacDue
2024-03-16 22:12:59 +00:00
committed by Alexander Kalenik
parent a68b134e6d
commit 6c26ff567e
8 changed files with 84 additions and 84 deletions

View File

@@ -12,8 +12,8 @@
#include <LibGfx/AffineTransform.h>
#include <LibGfx/Color.h>
#include <LibGfx/PaintStyle.h>
#include <LibGfx/PathClipper.h>
#include <LibWeb/Bindings/CanvasRenderingContext2DPrototype.h>
#include <LibWeb/HTML/Canvas/CanvasPathClipper.h>
#include <LibWeb/HTML/CanvasGradient.h>
#include <LibWeb/HTML/CanvasPattern.h>
@@ -79,7 +79,7 @@ public:
bool image_smoothing_enabled { true };
Bindings::ImageSmoothingQuality image_smoothing_quality { Bindings::ImageSmoothingQuality::Low };
float global_alpha = { 1 };
Optional<CanvasClip> clip;
Optional<Gfx::ClipPath> clip;
RefPtr<CSS::StyleValue> font_style_value { nullptr };
RefPtr<Gfx::Font const> current_font { nullptr };
Bindings::CanvasTextAlign text_align { Bindings::CanvasTextAlign::Start };