Bug 706369 - Changed occurences of nsIContent::getChildAt() using getFirstChild(), getNextSibling() and getPreviousSibling(), r=surkov

This commit is contained in:
Jignesh Kakadiya
2011-12-07 12:50:17 +05:30
parent 3e7513f857
commit 9b3501f886
5 changed files with 38 additions and 53 deletions

View File

@@ -720,11 +720,11 @@ nsHTMLGroupboxAccessible::NativeRole()
return nsIAccessibleRole::ROLE_GROUPING;
}
nsIContent* nsHTMLGroupboxAccessible::GetLegend()
nsIContent*
nsHTMLGroupboxAccessible::GetLegend()
{
nsresult count = 0;
nsIContent *legendContent = nsnull;
while ((legendContent = mContent->GetChildAt(count++)) != nsnull) {
for (nsIContent* legendContent = mContent->GetFirstChild(); legendContent;
legendContent = legendContent->GetNextSibling()) {
if (legendContent->NodeInfo()->Equals(nsGkAtoms::legend,
mContent->GetNameSpaceID())) {
// Either XHTML namespace or no namespace