Bug 630891 - Don't repaint nsSubDocumentFrames when they move. r=roc a=roc
authorPatrick Walton <pwalton@mozilla.com>
Wed, 02 Feb 2011 13:53:53 -0800
changeset 61807 b0325a41a1670c42bb9f9a27c61427b28a05fbe1
parent 61804 c0397dc901f46fa2aedd8e6c990f51e70259ef05
child 61808 f83ed5f4e8857ef49025fb5187c760cbdd563236
push id18499
push userpwalton@mozilla.com
push dateWed, 02 Feb 2011 21:54:31 +0000
treeherdermozilla-central@b0325a41a167 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersroc, roc
bugs630891
milestone2.0b12pre
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 630891 - Don't repaint nsSubDocumentFrames when they move. r=roc a=roc
layout/generic/nsSubDocumentFrame.cpp
--- a/layout/generic/nsSubDocumentFrame.cpp
+++ b/layout/generic/nsSubDocumentFrame.cpp
@@ -669,21 +669,16 @@ nsSubDocumentFrame::Reflow(nsPresContext
     vm->ResizeView(mInnerView, nsRect(nsPoint(0, 0), innerSize), PR_TRUE);
   }
 
   // Determine if we need to repaint our border, background or outline
   CheckInvalidateSizeChange(aDesiredSize);
 
   FinishAndStoreOverflow(&aDesiredSize);
 
-  // Invalidate the frame contents
-  // XXX is this really needed?
-  nsRect rect(nsPoint(0, 0), GetSize());
-  Invalidate(rect);
-
   if (!aPresContext->IsPaginated() && !mPostedReflowCallback) {
     PresContext()->PresShell()->PostReflowCallback(this);
     mPostedReflowCallback = PR_TRUE;
   }
 
   // printf("OuterFrame::Reflow DONE %X (%d,%d)\n", this,
   //        aDesiredSize.width, aDesiredSize.height);