Bug 709523 - Part d: Remove nsHTMLEditor::IsRootTag; r=ehsan a=edmorley

This commit is contained in:
Ms2ger 2011-12-11 21:00:28 +01:00
parent 4ad91d4c9a
commit 92dbf5d385
2 changed files with 0 additions and 26 deletions

View File

@ -2795,8 +2795,6 @@ NODE_FOUND:
parent->GetNodeName(parentTagName);
// Note: Originally used IsRoot to stop at table cells,
// but that's too messy when you are trying to find the parent table
//bool isRoot;
//if (NS_FAILED(IsRootTag(parentTagName, isRoot)) || isRoot)
if(parentTagName.LowerCaseEqualsLiteral("body"))
break;
@ -4196,28 +4194,6 @@ nsHTMLEditor::SetCaretInTableCell(nsIDOMElement* aElement)
return caretIsSet;
}
NS_IMETHODIMP
nsHTMLEditor::IsRootTag(nsString &aTag, bool &aIsTag)
{
static char bodyTag[] = "body";
static char tdTag[] = "td";
static char thTag[] = "th";
static char captionTag[] = "caption";
if (aTag.EqualsIgnoreCase(bodyTag) ||
aTag.EqualsIgnoreCase(tdTag) ||
aTag.EqualsIgnoreCase(thTag) ||
aTag.EqualsIgnoreCase(captionTag) )
{
aIsTag = true;
}
else {
aIsTag = false;
}
return NS_OK;
}
///////////////////////////////////////////////////////////////////////////
// GetEnclosingTable: find ancestor who is a table, if any
//

View File

@ -513,8 +513,6 @@ protected:
// End of Table Editing utilities
NS_IMETHOD IsRootTag(nsString &aTag, bool &aIsTag);
virtual bool IsBlockNode(nsIDOMNode *aNode);
virtual bool IsBlockNode(nsINode *aNode);