mirror of
https://github.com/zebrajr/ladybird.git
synced 2025-12-06 00:19:53 +01: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
|
|
@ -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…
Reference in New Issue
Block a user