mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-02 10:00:54 +00:00
bug 1167358 - use ProxyAccessible::Parent() a little more r=lsocks
This commit is contained in:
parent
bdce3cf717
commit
d5200e484d
@ -85,7 +85,7 @@ public:
|
||||
*/
|
||||
void RemoveChildDoc(DocAccessibleParent* aChildDoc)
|
||||
{
|
||||
aChildDoc->mParent->SetChildDoc(nullptr);
|
||||
aChildDoc->Parent()->SetChildDoc(nullptr);
|
||||
mChildDocs.RemoveElement(aChildDoc);
|
||||
aChildDoc->mParentDoc = nullptr;
|
||||
MOZ_ASSERT(aChildDoc->mChildDocs.Length() == 0);
|
||||
|
@ -46,7 +46,7 @@ public:
|
||||
ProxyAccessible* ChildAt(uint32_t aIdx) const { return mChildren[aIdx]; }
|
||||
|
||||
// XXX evaluate if this is fast enough.
|
||||
size_t IndexInParent() const { return mParent->mChildren.IndexOf(this); }
|
||||
size_t IndexInParent() const { return Parent()->mChildren.IndexOf(this); }
|
||||
int32_t IndexOfEmbeddedChild(const ProxyAccessible*);
|
||||
bool MustPruneChildren() const;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user