mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-14 12:13:22 +00:00
Turn on selection for all documents that are being edited. This enables selection in GFX ender widgets.
This commit is contained in:
parent
7926eb10f0
commit
5f74f88c68
@ -494,6 +494,11 @@ nsEditor::Init(nsIDOMDocument *aDoc, nsIPresShell* aPresShell)
|
||||
mDoc = aDoc;
|
||||
mPresShell = aPresShell; // we don't addref the pres shell
|
||||
|
||||
// ensure that text is selectable (for text widgets etc)
|
||||
nsCOMPtr<nsIDocument> theDoc = do_QueryInterface(mDoc);
|
||||
if (theDoc)
|
||||
theDoc->SetDisplaySelection(PR_TRUE);
|
||||
|
||||
// disable links
|
||||
nsCOMPtr<nsIPresContext> context;
|
||||
mPresShell->GetPresContext(getter_AddRefs(context));
|
||||
|
@ -494,6 +494,11 @@ nsEditor::Init(nsIDOMDocument *aDoc, nsIPresShell* aPresShell)
|
||||
mDoc = aDoc;
|
||||
mPresShell = aPresShell; // we don't addref the pres shell
|
||||
|
||||
// ensure that text is selectable (for text widgets etc)
|
||||
nsCOMPtr<nsIDocument> theDoc = do_QueryInterface(mDoc);
|
||||
if (theDoc)
|
||||
theDoc->SetDisplaySelection(PR_TRUE);
|
||||
|
||||
// disable links
|
||||
nsCOMPtr<nsIPresContext> context;
|
||||
mPresShell->GetPresContext(getter_AddRefs(context));
|
||||
|
Loading…
x
Reference in New Issue
Block a user