Last checkin didn't fix 47309, so revert that part 'til we get a better fix

This commit is contained in:
akkana%netscape.com 2000-08-29 00:18:53 +00:00
parent 22f88b737e
commit 76b85d375c
2 changed files with 10 additions and 6 deletions

View File

@ -4143,14 +4143,16 @@ PRBool
nsHTMLDocument::IsInSelection(nsIDOMSelection* aSelection,
const nsIContent* aContent) const
{
nsIAtom* tag;
nsresult rv = aContent->GetTag(tag);
PRBool retval;
#if 0
// HTML document has to include body in the selection,
// so that output can see style nodes on the body
// in case the caller doesn't know to specify wrap column
// or preformatted or similar styles.
nsIAtom* tag;
nsresult rv = aContent->GetTag(tag);
PRBool retval = (NS_SUCCEEDED(rv) && tag == nsHTMLAtoms::body);
retval = (NS_SUCCEEDED(rv) && tag == nsHTMLAtoms::body);
if (retval)
{
NS_IF_RELEASE(tag);

View File

@ -4143,14 +4143,16 @@ PRBool
nsHTMLDocument::IsInSelection(nsIDOMSelection* aSelection,
const nsIContent* aContent) const
{
nsIAtom* tag;
nsresult rv = aContent->GetTag(tag);
PRBool retval;
#if 0
// HTML document has to include body in the selection,
// so that output can see style nodes on the body
// in case the caller doesn't know to specify wrap column
// or preformatted or similar styles.
nsIAtom* tag;
nsresult rv = aContent->GetTag(tag);
PRBool retval = (NS_SUCCEEDED(rv) && tag == nsHTMLAtoms::body);
retval = (NS_SUCCEEDED(rv) && tag == nsHTMLAtoms::body);
if (retval)
{
NS_IF_RELEASE(tag);