Bug 1650719 - Don't lose the rect offset from the composition bounds. r=kats

This offset was reset in one of the two codepaths of D80723, but turns
out it's important for same-origin documents that are also
root-content-documents, like about: pages in the parent process, which
happened to hit the codepath that did _not_ reset it. :(

Differential Revision: https://phabricator.services.mozilla.com/D84584
This commit is contained in:
Emilio Cobos Álvarez 2020-07-22 22:02:35 +00:00
Родитель 249401cc24
Коммит 5f16e77dfd
1 изменённых файлов: 2 добавлений и 2 удалений

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

@ -8732,8 +8732,8 @@ bool nsLayoutUtils::UpdateCompositionBoundsForRCDRSF(
shouldSubtractDynamicToolbar)) {
return false;
}
aCompBounds = ParentLayerRect(ViewAs<ParentLayerPixel>(
LayoutDeviceIntRect(LayoutDeviceIntPoint(), contentSize),
aCompBounds.SizeTo(ViewAs<ParentLayerPixel>(
LayoutDeviceSize(contentSize),
PixelCastJustification::LayoutDeviceIsParentLayerForRCDRSF));
return true;
}