This commit is contained in:
Alexander Surkov 2012-03-26 13:42:28 +09:00
Родитель 0c44dec5fa
Коммит 41e5eec243
1 изменённых файлов: 3 добавлений и 3 удалений

Просмотреть файл

@ -1352,8 +1352,8 @@ nsAccessible::GetAttributes(nsIPersistentProperties **aAttributes)
nsresult nsresult
nsAccessible::GetAttributesInternal(nsIPersistentProperties *aAttributes) nsAccessible::GetAttributesInternal(nsIPersistentProperties *aAttributes)
{ {
// Don't calculate content based object attributes for not primary for the // If the accessible isn't primary for its node (such as list item bullet or
// DOM node accessible (like list bullet or XUL tree items). // xul tree item then don't calculate content based attributes.
if (!IsPrimaryForNode()) if (!IsPrimaryForNode())
return NS_OK; return NS_OK;
@ -1423,7 +1423,7 @@ nsAccessible::GetAttributesInternal(nsIPersistentProperties *aAttributes)
} }
// Don't calculate CSS-based object attributes when no frame (i.e. // Don't calculate CSS-based object attributes when no frame (i.e.
// the accessible is unattached from the three). // the accessible is unattached from the tree).
if (!mContent->GetPrimaryFrame()) if (!mContent->GetPrimaryFrame())
return NS_OK; return NS_OK;