mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-09 11:06:10 +00:00
LibWeb: Remove ImageData's create_with_size() and use create() instead
Removes ImageData::create_with_size() and redirects previous usage to ImageData::create().
This commit is contained in:
parent
8a1e88677f
commit
51847bbebf
Notes:
sideshowbarker
2024-07-16 23:59:28 +09:00
Author: https://github.com/kennethmyhra
Commit: 51847bbebf
Pull-request: https://github.com/SerenityOS/serenity/pull/23692
Reviewed-by: https://github.com/awesomekling
5 changed files with 5 additions and 26 deletions
|
@ -15,7 +15,7 @@ class CanvasImageData {
|
|||
public:
|
||||
virtual ~CanvasImageData() = default;
|
||||
|
||||
virtual JS::GCPtr<ImageData> create_image_data(int width, int height) const = 0;
|
||||
virtual WebIDL::ExceptionOr<JS::NonnullGCPtr<ImageData>> create_image_data(int width, int height) const = 0;
|
||||
virtual WebIDL::ExceptionOr<JS::GCPtr<ImageData>> get_image_data(int x, int y, int width, int height) const = 0;
|
||||
virtual void put_image_data(ImageData const&, float x, float y) = 0;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue