From 4ea70c24e1746f58d449a7e29cb7bacdb6eea7d0 Mon Sep 17 00:00:00 2001 From: Trevor Saunders Date: Fri, 22 Jan 2016 06:51:45 -0500 Subject: [PATCH] bug 1243077 - add AccessibleOrProxy::LastChild() r=davidb --- accessible/base/AccessibleOrProxy.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/accessible/base/AccessibleOrProxy.h b/accessible/base/AccessibleOrProxy.h index e3bd7a1d818..ce2b12ebf33 100644 --- a/accessible/base/AccessibleOrProxy.h +++ b/accessible/base/AccessibleOrProxy.h @@ -85,6 +85,18 @@ public: return AsAccessible()->FirstChild(); } + /** + * Return the first child object. + */ + AccessibleOrProxy LastChild() + { + if (IsProxy()) { + return AsProxy()->LastChild(); + } + + return AsAccessible()->LastChild(); + } + role Role() const { if (IsProxy()) {