Fix for not setting reflow state on object frame in printing case bug 97563 r=av sr=attinasi

This commit is contained in:
peterlubczynski%netscape.com 2001-09-05 02:45:48 +00:00
Родитель dc54c9f259
Коммит d3e6c07fba
2 изменённых файлов: 8 добавлений и 2 удалений

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

@ -832,7 +832,10 @@ nsObjectFrame::Reflow(nsIPresContext* aPresContext,
return HandleChild(aPresContext, aMetrics, aReflowState, aStatus, child);
// if we are printing, bail for now
nsCOMPtr<nsIPrintContext> thePrinterContext = do_QueryInterface(aPresContext);
if (thePrinterContext) return rv;
if (thePrinterContext) {
aStatus = NS_FRAME_COMPLETE;
return rv;
}
// if mInstance is null, we need to determine what kind of object we are and instantiate ourselves
if (!mInstanceOwner) {

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

@ -832,7 +832,10 @@ nsObjectFrame::Reflow(nsIPresContext* aPresContext,
return HandleChild(aPresContext, aMetrics, aReflowState, aStatus, child);
// if we are printing, bail for now
nsCOMPtr<nsIPrintContext> thePrinterContext = do_QueryInterface(aPresContext);
if (thePrinterContext) return rv;
if (thePrinterContext) {
aStatus = NS_FRAME_COMPLETE;
return rv;
}
// if mInstance is null, we need to determine what kind of object we are and instantiate ourselves
if (!mInstanceOwner) {