mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-11 12:25:53 +00:00
Bug 382555 Don't need check IsEmbeddedObject in GetNativeInterface if we've already created mAtkObjectr=aaronleventhal
This commit is contained in:
parent
e54656aae6
commit
f20cc0b658
@ -361,11 +361,12 @@ NS_IMETHODIMP nsAccessibleWrap::GetNativeInterface(void **aOutAccessible)
|
||||
{
|
||||
*aOutAccessible = nsnull;
|
||||
|
||||
if (!IsEmbeddedObject(this)) {
|
||||
// We don't create ATK objects for nsIAccessible plain text leaves
|
||||
return NS_ERROR_FAILURE;
|
||||
}
|
||||
if (!mAtkObject) {
|
||||
if (!IsEmbeddedObject(this)) {
|
||||
// We don't create ATK objects for nsIAccessible plain text leaves
|
||||
return NS_ERROR_FAILURE;
|
||||
}
|
||||
|
||||
GType type = GetMaiAtkType(CreateMaiInterfaces());
|
||||
NS_ENSURE_TRUE(type, NS_ERROR_FAILURE);
|
||||
mAtkObject =
|
||||
|
Loading…
Reference in New Issue
Block a user