Backed out changeset ce62f87104e1
authorKyle Huey <me@kylehuey.com>
Fri, 15 Oct 2010 12:53:00 -0400
changeset 55880 defdd7460560ab60ac5e054364e3ff302b1e1fd2
parent 55870 ce62f87104e1863e89c4a7174ff4cdc78f1f41eb
child 55881 c56b47b3b6c7efe1ff4268b0d7d474401b1f4e95
push idunknown
push userunknown
push dateunknown
milestone2.0b8pre
backs outce62f87104e1863e89c4a7174ff4cdc78f1f41eb
Backed out changeset ce62f87104e1
content/html/content/src/nsHTMLFieldSetElement.cpp
--- a/content/html/content/src/nsHTMLFieldSetElement.cpp
+++ b/content/html/content/src/nsHTMLFieldSetElement.cpp
@@ -188,17 +188,17 @@ nsHTMLFieldSetElement::InsertChildAt(nsI
 
   if (aChild->IsHTML(nsGkAtoms::legend)) {
     if (!mFirstLegend) {
       mFirstLegend = aChild;
       // We do not want to notify the first time mFirstElement is set.
     } else {
       // If mFirstLegend is before aIndex, we do not change it.
       // Otherwise, mFirstLegend is now aChild.
-      if (PRInt32(aIndex) <= IndexOf(mFirstLegend)) {
+      if (aIndex <= IndexOf(mFirstLegend)) {
         mFirstLegend = aChild;
         firstLegendHasChanged = true;
       }
     }
   }
 
   nsresult rv = nsGenericHTMLFormElement::InsertChildAt(aChild, aIndex, aNotify);
   NS_ENSURE_SUCCESS(rv, rv);