turns out that selection code is used even when outputing an entire document (beats me why); disabling my changes so that text field output will work again.

This commit is contained in:
jfrancis%netscape.com 2000-08-29 03:09:54 +00:00
Родитель e8381a76bf
Коммит 7d5e6f0454
3 изменённых файлов: 6 добавлений и 6 удалений

Просмотреть файл

@ -5239,7 +5239,7 @@ nsDOMSelection::ContainsNode(nsIDOMNode* aNode, PRBool aRecursive, PRBool* aYes)
nsCOMPtr<nsIDOMRange> newrange, range = do_QueryInterface(element);
if (!range)
return NS_ERROR_UNEXPECTED;
/*
// For bug 46554: since the only callers of ContainsNode() is the copy code from document,
// I'm altering the semantics of this routine. Now it will consider any node whose
// children are all selected to be selected itself. This is to help the user get
@ -5251,7 +5251,7 @@ nsDOMSelection::ContainsNode(nsIDOMNode* aNode, PRBool aRecursive, PRBool* aYes)
rv = PromoteRange(newrange);
if (NS_FAILED(rv)) return rv;
*/
nsCOMPtr<nsIContent> content (do_QueryInterface(aNode));
if (content)
{

Просмотреть файл

@ -5239,7 +5239,7 @@ nsDOMSelection::ContainsNode(nsIDOMNode* aNode, PRBool aRecursive, PRBool* aYes)
nsCOMPtr<nsIDOMRange> newrange, range = do_QueryInterface(element);
if (!range)
return NS_ERROR_UNEXPECTED;
/*
// For bug 46554: since the only callers of ContainsNode() is the copy code from document,
// I'm altering the semantics of this routine. Now it will consider any node whose
// children are all selected to be selected itself. This is to help the user get
@ -5251,7 +5251,7 @@ nsDOMSelection::ContainsNode(nsIDOMNode* aNode, PRBool aRecursive, PRBool* aYes)
rv = PromoteRange(newrange);
if (NS_FAILED(rv)) return rv;
*/
nsCOMPtr<nsIContent> content (do_QueryInterface(aNode));
if (content)
{

Просмотреть файл

@ -5239,7 +5239,7 @@ nsDOMSelection::ContainsNode(nsIDOMNode* aNode, PRBool aRecursive, PRBool* aYes)
nsCOMPtr<nsIDOMRange> newrange, range = do_QueryInterface(element);
if (!range)
return NS_ERROR_UNEXPECTED;
/*
// For bug 46554: since the only callers of ContainsNode() is the copy code from document,
// I'm altering the semantics of this routine. Now it will consider any node whose
// children are all selected to be selected itself. This is to help the user get
@ -5251,7 +5251,7 @@ nsDOMSelection::ContainsNode(nsIDOMNode* aNode, PRBool aRecursive, PRBool* aYes)
rv = PromoteRange(newrange);
if (NS_FAILED(rv)) return rv;
*/
nsCOMPtr<nsIContent> content (do_QueryInterface(aNode));
if (content)
{