mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-11 12:25:53 +00:00
Bug 384874 Fix regression from previous patch for bug 382746 r=Enn sr=bz
This commit is contained in:
parent
72d288c70e
commit
6993fe36b9
@ -238,7 +238,7 @@ nsGridRowLeafLayout::PopulateBoxSizes(nsIBox* aBox, nsBoxLayoutState& aState, ns
|
||||
last = current;
|
||||
}
|
||||
|
||||
if (child)
|
||||
if (child && !column->mIsBogus)
|
||||
child = child->GetNextBox();
|
||||
|
||||
}
|
||||
|
@ -452,8 +452,6 @@ nsSprocketLayout::Layout(nsIBox* aBox, nsBoxLayoutState& aState)
|
||||
{
|
||||
childComputedBoxSize = childComputedBoxSize->next;
|
||||
childBoxSize = childBoxSize->next;
|
||||
if (child)
|
||||
child = child->GetNextBox();
|
||||
count++;
|
||||
x = nextX;
|
||||
y = nextY;
|
||||
@ -784,6 +782,8 @@ nsSprocketLayout::PopulateBoxSizes(nsIBox* aBox, nsBoxLayoutState& aState, nsBox
|
||||
|
||||
while(child)
|
||||
{
|
||||
while (currentBox && currentBox->bogus)
|
||||
currentBox = currentBox->next;
|
||||
++childCount;
|
||||
nsSize pref(0,0);
|
||||
nsSize min(0,0);
|
||||
|
Loading…
Reference in New Issue
Block a user