diff --git a/accessible/base/AccCollector.cpp b/accessible/base/AccCollector.cpp index 9c98afc58cdd..ecf19a18de3b 100644 --- a/accessible/base/AccCollector.cpp +++ b/accessible/base/AccCollector.cpp @@ -43,7 +43,7 @@ EmbeddedObjCollector::GetAccessibleAt(uint32_t aIndex) // nsAccCollector protected Accessible* -AccCollector::EnsureNGetObject(uint32_t aIndex) +EmbeddedObjCollector::EnsureNGetObject(uint32_t aIndex) { uint32_t childCount = mRoot->ChildCount(); while (mRootChildIdx < childCount) { diff --git a/accessible/base/AccCollector.h b/accessible/base/AccCollector.h index 5879aba35864..26d14568fc8d 100644 --- a/accessible/base/AccCollector.h +++ b/accessible/base/AccCollector.h @@ -25,11 +25,6 @@ public: virtual ~AccCollector(); protected: - /** - * Ensure accessible at the given index is stored and return it. - */ - Accessible* EnsureNGetObject(uint32_t aIndex); - /** * Ensure index for the given accessible is stored and return it. */ @@ -78,6 +73,11 @@ public: Accessible* GetAccessibleAt(uint32_t aIndex); protected: + /** + * Ensure accessible at the given index is stored and return it. + */ + Accessible* EnsureNGetObject(uint32_t aIndex); + // Make sure it's used by Accessible class only. explicit EmbeddedObjCollector(Accessible* aRoot) : AccCollector(aRoot, filters::GetEmbeddedObject) { }