bug 717683 - remove unneeded QI to nsIAccessibleDocument r=davidb

This commit is contained in:
Trevor Saunders 2011-12-27 17:00:13 -05:00
parent 74c96b3bf3
commit 0d0d4701f7

View File

@ -441,13 +441,9 @@ nsAccessibleWrap::CreateMaiInterfaces(void)
interfacesBits |= 1 << MAI_INTERFACE_VALUE;
}
//nsIAccessibleDocument
nsCOMPtr<nsIAccessibleDocument> accessInterfaceDocument;
QueryInterface(NS_GET_IID(nsIAccessibleDocument),
getter_AddRefs(accessInterfaceDocument));
if (accessInterfaceDocument) {
// document accessible
if (IsDoc())
interfacesBits |= 1 << MAI_INTERFACE_DOCUMENT;
}
if (IsImageAccessible())
interfacesBits |= 1 << MAI_INTERFACE_IMAGE;