Bug 1716537 - Allow updating viewport dimensions on paginated subdocuments. r=mattwoodrow

As those don't have the same incremental reflow issues as root paginated
documents, and we do need this for remote iframes to update their
viewport.

Depends on D119103

Differential Revision: https://phabricator.services.mozilla.com/D119104
This commit is contained in:
Emilio Cobos Álvarez 2021-07-06 15:17:44 +00:00
Родитель 469eabe833
Коммит e85773cf91
1 изменённых файлов: 1 добавлений и 1 удалений

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

@ -747,7 +747,7 @@ void nsSubDocumentFrame::Reflow(nsPresContext* aPresContext,
FinishAndStoreOverflow(&aDesiredSize);
if (!aPresContext->IsPaginated() && !mPostedReflowCallback) {
if (!aPresContext->IsRootPaginatedDocument() && !mPostedReflowCallback) {
PresShell()->PostReflowCallback(this);
mPostedReflowCallback = true;
}