bug 1162654 - allow proxies to implement the document interface r=davidb

This commit is contained in:
Trevor Saunders 2015-05-07 13:31:56 -04:00
parent faee2bb8a5
commit ea31b88c07
3 changed files with 7 additions and 0 deletions

View File

@ -1060,6 +1060,9 @@ GetInterfacesForProxy(ProxyAccessible* aProxy, uint32_t aInterfaces)
if (aInterfaces & Interfaces::IMAGE)
interfaces |= MAI_INTERFACE_IMAGE;
if (aInterfaces & Interfaces::DOCUMENT)
interfaces |= MAI_INTERFACE_DOCUMENT;
return interfaces;
}

View File

@ -39,6 +39,9 @@ InterfacesFor(Accessible* aAcc)
if (aAcc->IsTableCell())
interfaces |= Interfaces::TABLECELL;
if (aAcc->IsDoc())
interfaces |= Interfaces::DOCUMENT;
return interfaces;
}

View File

@ -321,6 +321,7 @@ enum Interfaces
VALUE = 8,
TABLE = 16,
TABLECELL = 32,
DOCUMENT = 64,
};
}