Bug 801488. Don't flush notifications when dragging a XUL splitter. r=bzbarsky
☠☠ backed out by 293bdc2afe11 ☠ ☠
authorRobert O'Callahan <robert@ocallahan.org>
Thu, 25 Oct 2012 00:34:49 +1300
changeset 111501 1ebc3b1b8feb8eb7c3e24a7772b66a462c6b9fa9
parent 111500 c61f326ad19fac5814c41ad4274ff5199bd27cf1
child 111502 205c1c846d7071cb802a46c27a57c83250d6f35c
push id93
push usernmatsakis@mozilla.com
push dateWed, 31 Oct 2012 21:26:57 +0000
reviewersbzbarsky
bugs801488
milestone19.0a1
Bug 801488. Don't flush notifications when dragging a XUL splitter. r=bzbarsky
layout/xul/base/src/nsSplitterFrame.cpp
--- a/layout/xul/base/src/nsSplitterFrame.cpp
+++ b/layout/xul/base/src/nsSplitterFrame.cpp
@@ -896,20 +896,16 @@ nsSplitterFrameInner::EnsureOrient()
 void
 nsSplitterFrameInner::AdjustChildren(nsPresContext* aPresContext)
 {
   EnsureOrient();
   bool isHorizontal = !mOuter->IsHorizontal();
 
   AdjustChildren(aPresContext, mChildInfosBefore, mChildInfosBeforeCount, isHorizontal);
   AdjustChildren(aPresContext, mChildInfosAfter, mChildInfosAfterCount, isHorizontal);
-   
-   // printf("----- Posting Dirty -----\n");
-
-  aPresContext->PresShell()->FlushPendingNotifications(Flush_Display);
 }
 
 static nsIFrame* GetChildBoxForContent(nsIFrame* aParentBox, nsIContent* aContent)
 {
   nsIFrame* childBox = aParentBox->GetChildBox();
 
   while (nullptr != childBox) {
     if (childBox->GetContent() == aContent) {