mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-13 21:35:39 +00:00
bug 1162654 - allow proxies to implement the document interface r=davidb
This commit is contained in:
parent
eb96f68758
commit
087aff8cbd
@ -1053,6 +1053,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;
|
||||
}
|
||||
|
||||
|
@ -39,6 +39,9 @@ InterfacesFor(Accessible* aAcc)
|
||||
if (aAcc->IsTableCell())
|
||||
interfaces |= Interfaces::TABLECELL;
|
||||
|
||||
if (aAcc->IsDoc())
|
||||
interfaces |= Interfaces::DOCUMENT;
|
||||
|
||||
return interfaces;
|
||||
}
|
||||
|
||||
|
@ -320,6 +320,7 @@ enum Interfaces
|
||||
VALUE = 8,
|
||||
TABLE = 16,
|
||||
TABLECELL = 32,
|
||||
DOCUMENT = 64,
|
||||
};
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user