From 55091f006e5199a852d855114647dd5056c58232 Mon Sep 17 00:00:00 2001 From: Atul Aggarwal Date: Mon, 26 Sep 2011 01:47:43 +0530 Subject: [PATCH] Bug 653295 - Fixing warning of comparision between signed and unsigned integer expressions in nsFrameSetFrame.cpp. r=bz --- layout/generic/nsFrameSetFrame.cpp | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/layout/generic/nsFrameSetFrame.cpp b/layout/generic/nsFrameSetFrame.cpp index 0c6965073de3..d7e5e050b746 100644 --- a/layout/generic/nsFrameSetFrame.cpp +++ b/layout/generic/nsFrameSetFrame.cpp @@ -1361,13 +1361,10 @@ nsHTMLFramesetFrame::RecalculateBorderResize() if (NS_UNLIKELY(!childTypes)) { return; } - PRUint32 childIndex, childTypeIndex = 0; - - // number of any type of children - PRUint32 numChildren = mContent->GetChildCount(); - for (childIndex = 0; childIndex < numChildren; childIndex++) { - nsIContent *child = mContent->GetChildAt(childIndex); + PRInt32 childTypeIndex = 0; + for (nsIContent *child = mContent->GetFirstChild(); child; + child = child->GetNextSibling()) { if (child->IsHTML()) { nsINodeInfo *ni = child->NodeInfo();