diff --git a/accessible/base/AccessibleOrProxy.h b/accessible/base/AccessibleOrProxy.h index 72cbeb03448f..d27c4cd829dc 100644 --- a/accessible/base/AccessibleOrProxy.h +++ b/accessible/base/AccessibleOrProxy.h @@ -50,6 +50,15 @@ public: bool IsNull() const { return mBits == 0; } + uint32_t ChildCount() const + { + if (IsProxy()) { + return AsProxy()->ChildrenCount(); + } + + return AsAccessible()->ChildCount(); + } + // XXX these are implementation details that ideally would not be exposed. uintptr_t Bits() const { return mBits; } void SetBits(uintptr_t aBits) { mBits = aBits; }