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

This commit is contained in:
Trevor Saunders 2016-01-22 06:44:27 -05:00
parent 82d0a0cb57
commit eeb5e033a9

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()) {