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; interfacesBits |= 1 << MAI_INTERFACE_VALUE;
} }
//nsIAccessibleDocument // document accessible
nsCOMPtr<nsIAccessibleDocument> accessInterfaceDocument; if (IsDoc())
QueryInterface(NS_GET_IID(nsIAccessibleDocument),
getter_AddRefs(accessInterfaceDocument));
if (accessInterfaceDocument) {
interfacesBits |= 1 << MAI_INTERFACE_DOCUMENT; interfacesBits |= 1 << MAI_INTERFACE_DOCUMENT;
}
if (IsImageAccessible()) if (IsImageAccessible())
interfacesBits |= 1 << MAI_INTERFACE_IMAGE; interfacesBits |= 1 << MAI_INTERFACE_IMAGE;