mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 13:51:41 +00:00
Bug 709523 - Part d: Remove nsHTMLEditor::IsRootTag; r=ehsan a=edmorley
This commit is contained in:
parent
4ad91d4c9a
commit
92dbf5d385
@ -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
|
||||
//
|
||||
|
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user