bs=7868 r=saari Adding in new api to bake on trunk before going to branch. this adds nsISelectionDisplay to nsISelectionController. SetDisplayFlags are how we now set if you want images selected or not
git-svn-id: svn://10.0.0.236/trunk@110680 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -38,7 +38,6 @@
|
||||
* ***** END LICENSE BLOCK ***** */
|
||||
|
||||
#include "pratom.h"
|
||||
|
||||
#include "nsIDOMDocument.h"
|
||||
#include "nsIPref.h"
|
||||
|
||||
@@ -108,6 +107,7 @@
|
||||
|
||||
#include "nsEditor.h"
|
||||
#include "nsEditorUtils.h"
|
||||
#include "nsISelectionDisplay.h"
|
||||
|
||||
#ifdef HACK_FORCE_REDRAW
|
||||
// INCLUDES FOR EVIL HACK TO FOR REDRAW
|
||||
@@ -319,7 +319,7 @@ nsEditor::Init(nsIDOMDocument *aDoc, nsIPresShell* aPresShell, nsIContent *aRoot
|
||||
aSelCon->SetCaretReadOnly(PR_FALSE);
|
||||
aSelCon->SetDisplaySelection(nsISelectionController::SELECTION_ON);
|
||||
|
||||
aSelCon->SetDisplayNonTextSelection(PR_TRUE);//we want to see all the selection reflected to user
|
||||
aSelCon->SetSelectionFlags(nsISelectionDisplay::DISPLAY_ALL);//we want to see all the selection reflected to user
|
||||
|
||||
// Set the selection to the beginning:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user