Bug 1372386 - nsSprocketLayout.cpp: Remove useless declaration r?dholbert draft
authorSylvestre Ledru <sledru@mozilla.com>
Tue, 13 Jun 2017 20:33:20 +0200
changeset 593485 cb62dd3e50f1e70491fdc4ed99e9101b1fce72af
parent 592068 2107599b3aee8b47b214c3069c82f40c2663d4a9
child 593486 589086b7ae98733e9511ca76cd978c003a1f4f62
push id63713
push userbmo:sledru@mozilla.com
push dateTue, 13 Jun 2017 18:35:07 +0000
reviewersdholbert
bugs1372386
milestone55.0a1
Bug 1372386 - nsSprocketLayout.cpp: Remove useless declaration r?dholbert MozReview-Commit-ID: L5hn6AtWWFy
layout/xul/nsSprocketLayout.cpp
--- a/layout/xul/nsSprocketLayout.cpp
+++ b/layout/xul/nsSprocketLayout.cpp
@@ -760,17 +760,16 @@ nsSprocketLayout::PopulateBoxSizes(nsIFr
       AddMargin(child, maxSize);
     }
 
     if (!currentBox) {
       // create one.
       currentBox = new (aState) nsBoxSize();
       if (!aBoxSizes) {
         aBoxSizes = currentBox;
-        last = aBoxSizes;
       } else {
         last->next = currentBox;
         last = currentBox;
       }
 
       nscoord minWidth;
       nscoord maxWidth;
       nscoord prefWidth;