From 128a8017a154615b72d6b5937acf3e250ffb5c45 Mon Sep 17 00:00:00 2001 From: Robert O'Callahan Date: Fri, 26 Oct 2012 14:39:31 +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();