зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1616411 - Part 4a: Make SurfaceCache aware that native image sizes can be affected by orientation. r=tnikkel
Differential Revision: https://phabricator.services.mozilla.com/D70983
This commit is contained in:
Родитель
1bb5699b04
Коммит
8ab9b44ae1
|
@ -562,6 +562,10 @@ class ImageSurfaceCache {
|
|||
MOZ_ASSERT_UNREACHABLE("Expected valid native size!");
|
||||
return aSize;
|
||||
}
|
||||
if (image->GetOrientation().SwapsWidthAndHeight() &&
|
||||
image->HandledOrientation()) {
|
||||
std::swap(factorSize.width, factorSize.height);
|
||||
}
|
||||
|
||||
if (mIsVectorImage) {
|
||||
// Ensure the aspect ratio matches the native size before forcing the
|
||||
|
|
Загрузка…
Ссылка в новой задаче