mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-02 10:00:54 +00:00
Bug 613174 Stop changing refcount of nsDocument during Traverse r=surkov a=davidb
This commit is contained in:
parent
dd1df119bd
commit
55b9aa3cb0
@ -167,8 +167,7 @@ NS_INTERFACE_MAP_BEGIN_CYCLE_COLLECTION_INHERITED(nsDocAccessible)
|
||||
// However at some point we may push <body> to implement the interfaces and
|
||||
// return nsDocAccessible to inherit from nsAccessibleWrap.
|
||||
|
||||
nsCOMPtr<nsIDOMXULDocument> xulDoc(do_QueryInterface(mDocument));
|
||||
if (xulDoc)
|
||||
if (mDocument && mDocument->IsXUL())
|
||||
status = nsAccessible::QueryInterface(aIID, (void**)&foundInterface);
|
||||
else
|
||||
status = nsHyperTextAccessible::QueryInterface(aIID,
|
||||
|
Loading…
Reference in New Issue
Block a user