Don't paint selection shading on images when printing. Bug 312415, r+sr=roc

This commit is contained in:
bzbarsky%mit.edu 2005-11-29 16:26:22 +00:00
Родитель 2afe4120aa
Коммит 4e9db4350c
1 изменённых файлов: 4 добавлений и 0 удалений

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

@ -2610,6 +2610,10 @@ nsPrintEngine::ReflowPrintObject(nsPrintObject * aPO, PRBool aDoCalcShrink)
return rv; return rv;
} }
// Don't paint selection stuff for images while printing.
// XXXbz should we be painting it for text, even?
aPO->mPresShell->SetSelectionFlags(nsISelectionDisplay::DISPLAY_TEXT);
aPO->mStyleSet->EndUpdate(); aPO->mStyleSet->EndUpdate();
// The pres shell now owns the style set object. // The pres shell now owns the style set object.