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

git-svn-id: svn://10.0.0.236/trunk@77425 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
akkana%netscape.com
2000-08-29 00:18:53 +00:00
parent ce42bbb5dd
commit 91949cbf5d
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);