diff --git a/layout/generic/nsSubDocumentFrame.cpp b/layout/generic/nsSubDocumentFrame.cpp index 8fc0c1886c36..cb3d24c83e4b 100644 --- a/layout/generic/nsSubDocumentFrame.cpp +++ b/layout/generic/nsSubDocumentFrame.cpp @@ -747,7 +747,7 @@ void nsSubDocumentFrame::Reflow(nsPresContext* aPresContext, FinishAndStoreOverflow(&aDesiredSize); - if (!aPresContext->IsPaginated() && !mPostedReflowCallback) { + if (!aPresContext->IsRootPaginatedDocument() && !mPostedReflowCallback) { PresShell()->PostReflowCallback(this); mPostedReflowCallback = true; }