bug 1167604 - don't hide ProxyAccessible::Parent() with DocAccessibleParent::Parent r=lsocks

This commit is contained in:
Trevor Saunders 2015-05-21 14:11:52 -04:00
parent a5c55ae6ad
commit 561ae2eecc

View File

@ -32,7 +32,7 @@ public:
{
MOZ_COUNT_DTOR_INHERITED(DocAccessibleParent, ProxyAccessible);
MOZ_ASSERT(mChildDocs.Length() == 0);
MOZ_ASSERT(!mParentDoc);
MOZ_ASSERT(!ParentDoc());
}
/*
@ -55,7 +55,7 @@ public:
void Unbind()
{
mParent = nullptr;
mParentDoc->mChildDocs.RemoveElement(this);
ParentDoc()->mChildDocs.RemoveElement(this);
mParentDoc = nullptr;
}
@ -70,7 +70,7 @@ public:
* Return the main processes representation of the parent document (if any)
* of the document this object represents.
*/
DocAccessibleParent* Parent() const { return mParentDoc; }
DocAccessibleParent* ParentDoc() const { return mParentDoc; }
/*
* Called when a document in a content process notifies the main process of a