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:
@@ -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 =
|
||||
|
||||
Reference in New Issue
Block a user