Checking for a printer before some optimizations.. which are not good for printing. sr=attinasi r=karnaze

This commit is contained in:
dcone%netscape.com 2001-02-27 14:52:07 +00:00
Родитель 183d2ecac6
Коммит 90ca463905
2 изменённых файлов: 14 добавлений и 6 удалений

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

@ -36,6 +36,7 @@
#include "nsLayoutAtoms.h"
#include "nsHTMLParts.h"
#include "nsIPresShell.h"
#include "nsIPrintContext.h"
/* ----------- nsTableCaptionFrame ---------- */
@ -1444,9 +1445,12 @@ NS_METHOD nsTableOuterFrame::Reflow(nsIPresContext* aPresContext,
mMinCaptionWidth = maxElementSize.width;
}
}
if ((eReflowReason_Resize == aOuterRS.reason) &&
(aOuterRS.availableWidth == mPriorAvailWidth) &&
!mPrevInFlow) {
nsCOMPtr<nsIPrintContext> thePrinterContext = do_QueryInterface(aPresContext);
if ((!thePrinterContext) &&
(eReflowReason_Resize == aOuterRS.reason) &&
(aOuterRS.availableWidth == mPriorAvailWidth) ) {
// don't do much if we are resize reflowed exactly like last time
nsRect rect;
GetRect(rect);

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

@ -36,6 +36,7 @@
#include "nsLayoutAtoms.h"
#include "nsHTMLParts.h"
#include "nsIPresShell.h"
#include "nsIPrintContext.h"
/* ----------- nsTableCaptionFrame ---------- */
@ -1444,9 +1445,12 @@ NS_METHOD nsTableOuterFrame::Reflow(nsIPresContext* aPresContext,
mMinCaptionWidth = maxElementSize.width;
}
}
if ((eReflowReason_Resize == aOuterRS.reason) &&
(aOuterRS.availableWidth == mPriorAvailWidth) &&
!mPrevInFlow) {
nsCOMPtr<nsIPrintContext> thePrinterContext = do_QueryInterface(aPresContext);
if ((!thePrinterContext) &&
(eReflowReason_Resize == aOuterRS.reason) &&
(aOuterRS.availableWidth == mPriorAvailWidth) ) {
// don't do much if we are resize reflowed exactly like last time
nsRect rect;
GetRect(rect);