bug 850990 - remove nsAccessNode::IsDocumentNode() r=surkov

This commit is contained in:
Trevor Saunders 2013-03-14 01:33:37 -04:00
Родитель 87f9338fda
Коммит d6b6d158d0
3 изменённых файлов: 2 добавлений и 6 удалений

Просмотреть файл

@ -68,10 +68,6 @@ public:
{
return GetNode() && GetNode()->IsNodeOfType(nsINode::eCONTENT);
}
bool IsDocumentNode() const
{
return GetNode() && GetNode()->IsNodeOfType(nsINode::eDOCUMENT);
}
/**
* Return the unique identifier of the accessible.

Просмотреть файл

@ -265,7 +265,7 @@ nsTextEquivUtils::AppendFromValue(Accessible* aAccessible,
}
//XXX: is it necessary to care the accessible is not a document?
if (aAccessible->IsDocumentNode())
if (aAccessible->IsDoc())
return NS_ERROR_UNEXPECTED;
nsIContent *content = aAccessible->GetContent();

Просмотреть файл

@ -3038,7 +3038,7 @@ Accessible::ContainerWidget() const
}
// Don't cross DOM document boundaries.
if (parent->IsDocumentNode())
if (parent->IsDoc())
break;
}
}