mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-02 16:33:13 +00:00
LibWeb: Make CanvasImageSource also be an ImageBitmap
This commit is contained in:
parent
af3a73c0a4
commit
94128fe027
Notes:
sideshowbarker
2024-07-17 02:39:10 +09:00
Author: https://github.com/LucasChollet
Commit: 94128fe027
Pull-request: https://github.com/SerenityOS/serenity/pull/23850
Reviewed-by: https://github.com/shannonbooth ✅
8 changed files with 24 additions and 5 deletions
|
@ -104,4 +104,9 @@ void ImageBitmap::set_bitmap(RefPtr<Gfx::Bitmap> bitmap)
|
|||
m_height = m_bitmap->height();
|
||||
}
|
||||
|
||||
Gfx::Bitmap* ImageBitmap::bitmap() const
|
||||
{
|
||||
return m_bitmap.ptr();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue