From a939ca0000743438763c4703d357e1f9fae833e2 Mon Sep 17 00:00:00 2001 From: Robert O'Callahan Date: Thu, 25 Oct 2012 00:34:55 +1300 Subject: [PATCH] Bug 801488. Part 2: Don't Redraw; DLBI will handle everything. r=mattwoodrow --- layout/xul/base/src/nsStackLayout.cpp | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/layout/xul/base/src/nsStackLayout.cpp b/layout/xul/base/src/nsStackLayout.cpp index 4ba62ce7a105..56edeb2df4a4 100644 --- a/layout/xul/base/src/nsStackLayout.cpp +++ b/layout/xul/base/src/nsStackLayout.cpp @@ -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();