mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-31 21:29:06 +00:00
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:
parent
a68b134e6d
commit
6c26ff567e
Notes:
sideshowbarker
2024-07-16 22:34:39 +09:00
Author: https://github.com/MacDue
Commit: 6c26ff567e
Pull-request: https://github.com/SerenityOS/serenity/pull/23612
8 changed files with 84 additions and 84 deletions
|
@ -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 };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue