author | Kyle Huey <me@kylehuey.com> |
Fri, 15 Oct 2010 12:53:00 -0400 | |
changeset 55880 | defdd7460560ab60ac5e054364e3ff302b1e1fd2 |
parent 55870 | ce62f87104e1863e89c4a7174ff4cdc78f1f41eb |
child 55881 | c56b47b3b6c7efe1ff4268b0d7d474401b1f4e95 |
push id | 16322 |
push user | khuey@kylehuey.com |
push date | Fri, 15 Oct 2010 17:38:02 +0000 |
treeherder | mozilla-central@c56b47b3b6c7 [default view] [failures only] |
perfherder | [talos] [build metrics] [platform microbench] (compared to previous push) |
milestone | 2.0b8pre |
backs out | ce62f87104e1863e89c4a7174ff4cdc78f1f41eb |
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
|
--- 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);