mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
bug 1167358 - use ProxyAccessible::Parent() a little more r=lsocks
This commit is contained in:
parent
f09c34bc5d
commit
cde37ffdd2
@ -85,7 +85,7 @@ public:
|
|||||||
*/
|
*/
|
||||||
void RemoveChildDoc(DocAccessibleParent* aChildDoc)
|
void RemoveChildDoc(DocAccessibleParent* aChildDoc)
|
||||||
{
|
{
|
||||||
aChildDoc->mParent->SetChildDoc(nullptr);
|
aChildDoc->Parent()->SetChildDoc(nullptr);
|
||||||
mChildDocs.RemoveElement(aChildDoc);
|
mChildDocs.RemoveElement(aChildDoc);
|
||||||
aChildDoc->mParentDoc = nullptr;
|
aChildDoc->mParentDoc = nullptr;
|
||||||
MOZ_ASSERT(aChildDoc->mChildDocs.Length() == 0);
|
MOZ_ASSERT(aChildDoc->mChildDocs.Length() == 0);
|
||||||
|
@ -46,7 +46,7 @@ public:
|
|||||||
ProxyAccessible* ChildAt(uint32_t aIdx) const { return mChildren[aIdx]; }
|
ProxyAccessible* ChildAt(uint32_t aIdx) const { return mChildren[aIdx]; }
|
||||||
|
|
||||||
// XXX evaluate if this is fast enough.
|
// 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*);
|
int32_t IndexOfEmbeddedChild(const ProxyAccessible*);
|
||||||
bool MustPruneChildren() const;
|
bool MustPruneChildren() const;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user