mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-13 03:29:49 +00:00
LibWeb: Add CanvasRenderingContext2D.canvas
This commit is contained in:
parent
abb33d425e
commit
a0f3e3c50e
Notes:
sideshowbarker
2024-07-19 06:17:54 +09:00
Author: https://github.com/linusg
Commit: a0f3e3c50e
Pull-request: https://github.com/SerenityOS/serenity/pull/2314
Reviewed-by: https://github.com/awesomekling
3 changed files with 28 additions and 11 deletions
|
@ -77,6 +77,8 @@ public:
|
|||
RefPtr<ImageData> create_image_data(JS::GlobalObject&, int width, int height) const;
|
||||
void put_image_data(const ImageData&, float x, float y);
|
||||
|
||||
HTMLCanvasElement* element() { return m_element; }
|
||||
|
||||
private:
|
||||
explicit CanvasRenderingContext2D(HTMLCanvasElement&);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue