mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-19 07:22:21 +00:00
LibWeb: Stub out createImageBitmap with an OffscreenCanvas image
This fixes build breakage caused by an interaction b/w PRs #4801 and #3788
This commit is contained in:
parent
81ccb655b4
commit
1d62bf7049
Notes:
github-actions[bot]
2025-06-30 16:38:39 +00:00
Author: https://github.com/ADKaster
Commit: 1d62bf7049
1 changed files with 6 additions and 0 deletions
|
@ -257,6 +257,12 @@ GC::Ref<WebIDL::Promise> WindowOrWorkerGlobalScopeMixin::create_image_bitmap_imp
|
|||
TemporaryExecutionContext const context { relevant_realm(p->promise()), TemporaryExecutionContext::CallbacksEnabled::Yes };
|
||||
WebIDL::reject_promise(realm, *p, error);
|
||||
},
|
||||
[&](GC::Root<OffscreenCanvas> const&) {
|
||||
dbgln("(STUBBED) createImageBitmap() for OffscreenCanvas");
|
||||
auto const error = JS::Error::create(realm, "Not Implemented: createImageBitmap() for OffscreenCanvas"sv);
|
||||
TemporaryExecutionContext const context { relevant_realm(p->promise()), TemporaryExecutionContext::CallbacksEnabled::Yes };
|
||||
WebIDL::reject_promise(realm, *p, error);
|
||||
},
|
||||
[&](GC::Root<HTMLVideoElement> const&) {
|
||||
dbgln("(STUBBED) createImageBitmap() for HTMLVideoElement");
|
||||
auto const error = JS::Error::create(realm, "Not Implemented: createImageBitmap() for HTMLVideoElement"sv);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue