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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user