mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-08 09:09:43 +00:00
LibWeb: Clip underlying Painter in CRC2D::clip()
This commit is contained in:
parent
57128f489a
commit
5aeb8ebebc
Notes:
github-actions[bot]
2024-08-20 07:37:46 +00:00
Author: https://github.com/awesomekling
Commit: 5aeb8ebebc
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/1024
5 changed files with 15 additions and 14 deletions
|
@ -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 };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue