зеркало из https://github.com/mozilla/gecko-dev.git
bug 850990 - remove nsAccessNode::IsDocumentNode() r=surkov
This commit is contained in:
Родитель
87f9338fda
Коммит
d6b6d158d0
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче