mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-24 18:02:20 +00:00
LibGfx+LibWebView+UI: Store Gfx::Bitmap in RefPtr to const
This commit is contained in:
parent
be2dd91289
commit
91b549f797
Notes:
github-actions[bot]
2025-04-16 16:44:09 +00:00
Author: https://github.com/ADKaster
Commit: 91b549f797
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4362
Reviewed-by: https://github.com/AtkinsSJ
Reviewed-by: https://github.com/Hendiadyoin1
8 changed files with 15 additions and 15 deletions
|
@ -164,11 +164,11 @@ void HeadlessWebView::clear_content_filters()
|
|||
client().async_set_content_filters(m_client_state.page_index, {});
|
||||
}
|
||||
|
||||
NonnullRefPtr<Core::Promise<RefPtr<Gfx::Bitmap>>> HeadlessWebView::take_screenshot()
|
||||
NonnullRefPtr<Core::Promise<RefPtr<Gfx::Bitmap const>>> HeadlessWebView::take_screenshot()
|
||||
{
|
||||
VERIFY(!m_pending_screenshot);
|
||||
|
||||
m_pending_screenshot = Core::Promise<RefPtr<Gfx::Bitmap>>::construct();
|
||||
m_pending_screenshot = Core::Promise<RefPtr<Gfx::Bitmap const>>::construct();
|
||||
client().async_take_document_screenshot(0);
|
||||
|
||||
return *m_pending_screenshot;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue