зеркало из https://github.com/mozilla/gecko-dev.git
Bug 459782 - check the name calculation rules for nsHTMLLinkAccessible. r=david.bolter/marco.zehe, a191=beltzner.
This commit is contained in:
Родитель
49bdac5777
Коммит
f607da9ef1
|
@ -60,17 +60,7 @@ NS_IMPL_ISUPPORTS_INHERITED1(nsHTMLLinkAccessible, nsHyperTextAccessibleWrap,
|
|||
nsresult
|
||||
nsHTMLLinkAccessible::GetNameInternal(nsAString& aName)
|
||||
{
|
||||
nsCOMPtr<nsIContent> content(do_QueryInterface(mDOMNode));
|
||||
nsresult rv = AppendFlatStringFromSubtree(content, &aName);
|
||||
NS_ENSURE_SUCCESS(rv, rv);
|
||||
|
||||
if (aName.IsEmpty()) {
|
||||
// Probably an image without alt or title inside, try to get the name on
|
||||
// the link by usual way.
|
||||
return GetHTMLName(aName, PR_FALSE);
|
||||
}
|
||||
|
||||
return NS_OK;
|
||||
return GetHTMLName(aName, PR_TRUE);
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
|
|
|
@ -73,6 +73,7 @@ _TEST_FILES =\
|
|||
test_nsIAccessible_editabledoc.html \
|
||||
test_nsIAccessible_name.html \
|
||||
test_nsIAccessible_name_button.html \
|
||||
test_nsIAccessible_name_link.html \
|
||||
$(warning test_nsIAccessible_name.xul temporarily disabled) \
|
||||
test_nsIAccessible_selects.html \
|
||||
test_nsIAccessible_states.html \
|
||||
|
|
Загрузка…
Ссылка в новой задаче