Backing out Bug 598316. a=afrosdwilsh
authorKyle Huey <me@kylehuey.com>
Fri, 15 Oct 2010 12:53:26 -0400
changeset 55881 c56b47b3b6c7efe1ff4268b0d7d474401b1f4e95
parent 55879 00e90d9720c851a49dc95ce930f563ac72ad24e6 (current diff)
parent 55880 defdd7460560ab60ac5e054364e3ff302b1e1fd2 (diff)
child 55882 fc828f78405184a097d496f19d636a9e6d38abdc
push id16322
push userkhuey@kylehuey.com
push dateFri, 15 Oct 2010 17:38:02 +0000
treeherdermozilla-central@c56b47b3b6c7 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersafrosdwilsh
bugs598316
milestone2.0b8pre
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Backing out Bug 598316. a=afrosdwilsh
--- 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);