mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 01:35:08 +02:00
LibWeb: Implement support for drawing with CanvasPattern
We already had the API, but drawing to the canvas was not affected by any created CanvasPattern. This moves CanvasPatternPaintStyle to LibGfx so we don't have to reach into LibWeb, and implements the plumbing to let Skia use images as a fill pattern.
This commit is contained in:
committed by
Tim Ledbetter
parent
9753b8e62c
commit
62ae4e878f
Notes:
github-actions[bot]
2025-10-23 12:21:23 +00:00
Author: https://github.com/gmta Commit: https://github.com/LadybirdBrowser/ladybird/commit/62ae4e878f5 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/6548 Reviewed-by: https://github.com/tcl3 ✅
@@ -50,7 +50,7 @@ public:
|
||||
String alt() const { return get_attribute_value(HTML::AttributeNames::alt); }
|
||||
|
||||
RefPtr<Gfx::ImmutableBitmap> immutable_bitmap() const;
|
||||
RefPtr<Gfx::ImmutableBitmap> default_image_bitmap_sized(Gfx::IntSize) const;
|
||||
virtual RefPtr<Gfx::ImmutableBitmap> default_image_bitmap_sized(Gfx::IntSize) const override;
|
||||
|
||||
WebIDL::UnsignedLong width() const;
|
||||
WebIDL::ExceptionOr<void> set_width(WebIDL::UnsignedLong);
|
||||
|
||||
Reference in New Issue
Block a user