Bug 1250715 - no acceptable children for leafs, r=marcoz

This commit is contained in:
Alexander Surkov 2016-02-25 10:42:52 -05:00
parent c6537709fd
commit 42491c0b86
2 changed files with 9 additions and 0 deletions

View File

@ -53,6 +53,13 @@ LeafAccessible::RemoveChild(Accessible* aChild)
return false; return false;
} }
bool
LeafAccessible::IsAcceptableChild(nsIContent* aEl) const
{
// No children for leaf accessible.
return false;
}
//////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////
// LeafAccessible: Accessible private // LeafAccessible: Accessible private

View File

@ -38,6 +38,8 @@ public:
virtual bool InsertChildAt(uint32_t aIndex, Accessible* aChild) override final; virtual bool InsertChildAt(uint32_t aIndex, Accessible* aChild) override final;
virtual bool RemoveChild(Accessible* aChild) override final; virtual bool RemoveChild(Accessible* aChild) override final;
virtual bool IsAcceptableChild(nsIContent* aEl) const override;
protected: protected:
virtual ~LeafAccessible() {} virtual ~LeafAccessible() {}