diff --git a/accessible/base/AccessibleOrProxy.h b/accessible/base/AccessibleOrProxy.h index e94c53c7664..e3bd7a1d818 100644 --- a/accessible/base/AccessibleOrProxy.h +++ b/accessible/base/AccessibleOrProxy.h @@ -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()) {