bug 1243077 - add AccessibleOrProxy::FirstChild() r=davidb

This commit is contained in:
Trevor Saunders 2016-01-22 06:44:27 -05:00
parent 837faf1b04
commit 01aa6d9da8

View File

@ -73,6 +73,18 @@ public:
return AsAccessible()->GetChildAt(aIdx);
}
/**
* Return the first child object.
*/
AccessibleOrProxy FirstChild()
{
if (IsProxy()) {
return AsProxy()->FirstChild();
}
return AsAccessible()->FirstChild();
}
role Role() const
{
if (IsProxy()) {