Bug 382555 Don't need check IsEmbeddedObject in GetNativeInterface if we've already created mAtkObjectr=aaronleventhal

This commit is contained in:
ginn.chen@sun.com 2007-06-04 01:37:33 -07:00
parent e54656aae6
commit f20cc0b658

View File

@ -361,11 +361,12 @@ NS_IMETHODIMP nsAccessibleWrap::GetNativeInterface(void **aOutAccessible)
{ {
*aOutAccessible = nsnull; *aOutAccessible = nsnull;
if (!IsEmbeddedObject(this)) {
// We don't create ATK objects for nsIAccessible plain text leaves
return NS_ERROR_FAILURE;
}
if (!mAtkObject) { if (!mAtkObject) {
if (!IsEmbeddedObject(this)) {
// We don't create ATK objects for nsIAccessible plain text leaves
return NS_ERROR_FAILURE;
}
GType type = GetMaiAtkType(CreateMaiInterfaces()); GType type = GetMaiAtkType(CreateMaiInterfaces());
NS_ENSURE_TRUE(type, NS_ERROR_FAILURE); NS_ENSURE_TRUE(type, NS_ERROR_FAILURE);
mAtkObject = mAtkObject =