Link fixes
git-svn-id: svn://10.0.0.236/branches/Accessible_042501_Branch3@93758 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -529,7 +529,7 @@ PRBool nsLinkableAccessible::IsALink()
|
||||
|
||||
nsCOMPtr<nsIContent> walkUpContent(do_QueryInterface(mNode));
|
||||
if (walkUpContent) {
|
||||
nsCOMPtr<nsIContent> tempContent;
|
||||
nsCOMPtr<nsIContent> tempContent = walkUpContent;
|
||||
while (walkUpContent) {
|
||||
nsCOMPtr<nsILink> link(do_QueryInterface(walkUpContent));
|
||||
if (link) {
|
||||
|
||||
@@ -40,7 +40,7 @@ nsLinkableAccessible(aShell, aDomNode)
|
||||
/* wstring getAccName (); */
|
||||
NS_IMETHODIMP nsHTMLLinkAccessible::GetAccName(PRUnichar **_retval)
|
||||
{
|
||||
if (!mLinkContent)
|
||||
if (!IsALink()) // Also initializes private data members
|
||||
return NS_ERROR_FAILURE;
|
||||
|
||||
nsAutoString nameString;
|
||||
|
||||
@@ -529,7 +529,7 @@ PRBool nsLinkableAccessible::IsALink()
|
||||
|
||||
nsCOMPtr<nsIContent> walkUpContent(do_QueryInterface(mNode));
|
||||
if (walkUpContent) {
|
||||
nsCOMPtr<nsIContent> tempContent;
|
||||
nsCOMPtr<nsIContent> tempContent = walkUpContent;
|
||||
while (walkUpContent) {
|
||||
nsCOMPtr<nsILink> link(do_QueryInterface(walkUpContent));
|
||||
if (link) {
|
||||
|
||||
@@ -40,7 +40,7 @@ nsLinkableAccessible(aShell, aDomNode)
|
||||
/* wstring getAccName (); */
|
||||
NS_IMETHODIMP nsHTMLLinkAccessible::GetAccName(PRUnichar **_retval)
|
||||
{
|
||||
if (!mLinkContent)
|
||||
if (!IsALink()) // Also initializes private data members
|
||||
return NS_ERROR_FAILURE;
|
||||
|
||||
nsAutoString nameString;
|
||||
|
||||
Reference in New Issue
Block a user