зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1653409
- Set ImageBitmap's picture rect using the picture rect of layers::Image, not the size. r=mstange
Differential Revision: https://phabricator.services.mozilla.com/D85356
This commit is contained in:
Родитель
be050a0bb1
Коммит
820348e12f
|
@ -438,7 +438,7 @@ ImageBitmap::ImageBitmap(nsIGlobalObject* aGlobal, layers::Image* aData,
|
|||
mData(aData),
|
||||
mSurface(nullptr),
|
||||
mDataWrapper(new ImageUtils(mData)),
|
||||
mPictureRect(0, 0, aData->GetSize().width, aData->GetSize().height),
|
||||
mPictureRect(aData->GetPictureRect()),
|
||||
mAlphaType(aAlphaType),
|
||||
mAllocatedImageData(false),
|
||||
mWriteOnly(aWriteOnly) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче