Issue #2546 - Part 2: Remove special FoxEye CreateImageBitmap method.

This commit is contained in:
Moonchild 2024-07-08 23:45:49 +02:00 committed by roytam1
commit 2b8d75e136
5 changed files with 0 additions and 77 deletions

View file

@ -14625,21 +14625,6 @@ nsGlobalWindow::CreateImageBitmap(const ImageBitmapSource& aImage,
return ImageBitmap::Create(this, aImage, Some(gfx::IntRect(aSx, aSy, aSw, aSh)), aRv);
}
already_AddRefed<mozilla::dom::Promise>
nsGlobalWindow::CreateImageBitmap(const ImageBitmapSource& aImage,
int32_t aOffset, int32_t aLength,
ImageBitmapFormat aFormat,
const Sequence<ChannelPixelLayout>& aLayout,
ErrorResult& aRv)
{
if (!ImageBitmap::ExtensionsEnabled(nullptr, nullptr)) {
aRv.Throw(NS_ERROR_TYPE_ERR);
return nullptr;
}
aRv.Throw(NS_ERROR_TYPE_ERR);
return nullptr;
}
// https://html.spec.whatwg.org/#structured-cloning
void
nsGlobalWindow::StructuredClone(JSContext* aCx,