зеркало из https://github.com/mozilla/gecko-dev.git
Bug 801488. Part 2: Don't Redraw; DLBI will handle everything. r=mattwoodrow
This commit is contained in:
Родитель
607ba35a14
Коммит
a939ca0000
|
@ -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();
|
||||
|
|
Загрузка…
Ссылка в новой задаче