Bug 321433 - Don't enable selection for printing. r+sr=roc.

git-svn-id: svn://10.0.0.236/trunk@189285 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
sharparrow1%yahoo.com
2006-02-07 02:52:40 +00:00
parent b588088110
commit 6e15d1b177
3 changed files with 11 additions and 11 deletions

View File

@@ -1736,7 +1736,11 @@ PresShell::Init(nsIDocument* aDocument,
//SetCaretEnabled(PR_TRUE); // make it show in browser windows
#endif
//set up selection to be displayed in document
SetDisplaySelection(nsISelectionController::SELECTION_DISABLED);
// Don't enable selection for print media
nsPresContext::nsPresContextType type = aPresContext->Type();
if (type != nsPresContext::eContext_PrintPreview &&
type != nsPresContext::eContext_Print)
SetDisplaySelection(nsISelectionController::SELECTION_DISABLED);
if (gMaxRCProcessingTime == -1) {
gMaxRCProcessingTime =