Bug 801488. Part 2: Don't Redraw; DLBI will handle everything. r=mattwoodrow

This commit is contained in:
Robert O'Callahan 2012-10-26 14:39:31 +13:00
Родитель 970b687590
Коммит 128a8017a1
1 изменённых файлов: 1 добавлений и 12 удалений

Просмотреть файл

@ -340,8 +340,7 @@ nsStackLayout::Layout(nsIFrame* aBox, nsBoxLayoutState& aState)
child->Layout(aState);
// Get the child's new rect.
nsRect childRectNoMargin;
childRectNoMargin = childRect = child->GetRect();
childRect = child->GetRect();
childRect.Inflate(margin);
if (child->GetStyleXUL()->mStretchStack) {
@ -356,16 +355,6 @@ nsStackLayout::Layout(nsIFrame* aBox, nsBoxLayoutState& aState)
grow = true;
}
}
if (!childRectNoMargin.IsEqualInterior(oldRect))
{
// redraw the new and old positions if the
// child moved or resized.
// if the new and old rect intersect meaning we just moved a little
// then just redraw the union. If they don't intersect (meaning
// we moved a good distance) redraw both separately.
aBox->Redraw(aState);
}
}
child = child->GetNextBox();