зеркало из https://github.com/mozilla/pjs.git
Bug 345723. Support 3 new accessible object attributes: layout-guess, id and xml-roles. Changing word separator to hyphen instead of space for consistency with other apps.
This commit is contained in:
Родитель
4a2039307b
Коммит
9c90c23219
|
@ -1932,7 +1932,7 @@ NS_IMETHODIMP nsAccessible::GetAttributes(nsIPersistentProperties **aAttributes)
|
|||
// through this attribute
|
||||
nsAutoString xmlRole;
|
||||
if (GetRoleAttribute(content, xmlRole)) {
|
||||
attributes->SetStringProperty(NS_LITERAL_CSTRING("xml roles"), xmlRole, oldValueUnused);
|
||||
attributes->SetStringProperty(NS_LITERAL_CSTRING("xml-roles"), xmlRole, oldValueUnused);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -147,7 +147,7 @@ NS_IMETHODIMP nsHTMLTableAccessible::GetAttributes(nsIPersistentProperties **aAt
|
|||
IsProbablyForLayout(&isProbablyForLayout);
|
||||
if (isProbablyForLayout) {
|
||||
nsAutoString oldValueUnused;
|
||||
(*aAttributes)->SetStringProperty(NS_LITERAL_CSTRING("layout guess"), NS_LITERAL_STRING("true"), oldValueUnused);
|
||||
(*aAttributes)->SetStringProperty(NS_LITERAL_CSTRING("layout-guess"), NS_LITERAL_STRING("true"), oldValueUnused);
|
||||
}
|
||||
|
||||
return NS_OK;
|
||||
|
|
Загрузка…
Ссылка в новой задаче