2028: Get selection highlighting working on Linux

git-svn-id: svn://10.0.0.236/trunk@18373 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
akkana%netscape.com
1999-01-23 00:00:46 +00:00
parent 1010f84a9c
commit 579c399f12
4 changed files with 74 additions and 46 deletions

View File

@@ -477,6 +477,7 @@ PresShell::Init(nsIDocument* aDocument,
if (!NS_SUCCEEDED(result))
return result;
selection->Clear();//clear all old selection
#if 0
nsCOMPtr<nsIDOMRange>range;
if (NS_SUCCEEDED(nsRepository::CreateInstance(kCRangeCID, nsnull, kIDOMRangeIID, getter_AddRefs(range)))){ //create an irange
nsCOMPtr<nsIDocument>doc(GetDocument());
@@ -496,6 +497,7 @@ PresShell::Init(nsIDocument* aDocument,
}
}
}
#endif
mSelection = selection;
return NS_OK;
}