Bug 1450346. Properly initialize mAppUnitsPerDevPixel. r=mstange

--HG--
extra : rebase_source : 67d4987a7b98230daec2e9b7a07e9a22e9de7a41
This commit is contained in:
Jeff Muizelaar 2018-03-30 16:24:13 -04:00
Родитель 88e41a5817
Коммит 482fb13afc
1 изменённых файлов: 3 добавлений и 1 удалений

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

@ -289,6 +289,8 @@ struct DIGroup
IntPoint mGroupOffset;
Maybe<wr::ImageKey> mKey;
DIGroup() : mAppUnitsPerDevPixel(0) {}
void InvalidateRect(const IntRect& aRect)
{
// Empty rects get dropped
@ -1047,7 +1049,7 @@ WebRenderCommandBuilder::DoGroupingForDisplayList(nsDisplayList* aList,
group.mAppUnitsPerDevPixel != appUnitsPerDevPixel ||
group.mScale != scale) {
if (group.mAppUnitsPerDevPixel != appUnitsPerDevPixel) {
printf("app unit %d %d\n", group.mAppUnitsPerDevPixel, appUnitsPerDevPixel);
GP("app unit %d %d\n", group.mAppUnitsPerDevPixel, appUnitsPerDevPixel);
}
// The bounds have changed so we need to discard the old image and add all
// the commands again.