Bug 1216924 - Don't align to tiles (either real or virtual) if displayport suppression is enabled. r=BenWa

MozReview-Commit-ID: 15XWTTM0tZI
This commit is contained in:
Kartikaya Gupta 2016-03-14 14:07:31 -04:00
Родитель 4b7ef956c7
Коммит b3806e256d
1 изменённых файлов: 3 добавлений и 1 удалений

Просмотреть файл

@ -950,7 +950,9 @@ GetDisplayPortFromMarginsData(nsIContent* aContent,
// the choosing of the resolution to display-list building time.
ScreenSize alignment;
if (gfxPrefs::LayersTilesEnabled() && !APZCCallbackHelper::IsDisplayportSuppressed()) {
if (APZCCallbackHelper::IsDisplayportSuppressed()) {
alignment = ScreenSize(1, 1);
} else if (gfxPrefs::LayersTilesEnabled()) {
alignment = ScreenSize(gfxPlatform::GetPlatform()->GetTileWidth(),
gfxPlatform::GetPlatform()->GetTileHeight());
} else {