Bug 575446 Be more careful about finding the correct scrollbars r=Enn
authorNeil Rashbrook <neil@parkwaycc.co.uk>
Wed, 30 Jun 2010 12:37:11 +0100
changeset 46434 4a12cdb665952480821878b5f1637870fc1c96d3
parent 46433 386da94a0c0ed0bd10022ea14e308eb9560acc6f
child 46435 15521c4449a9807218a407c77fce5e41f355a5c3
push id14187
push userneil@parkwaycc.co.uk
push dateWed, 30 Jun 2010 11:45:42 +0000
treeherdermozilla-central@ea59b927d99f [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersEnn
bugs575446
milestone2.0b2pre
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 575446 Be more careful about finding the correct scrollbars r=Enn
layout/xul/base/src/tree/src/nsTreeBodyFrame.cpp
--- a/layout/xul/base/src/tree/src/nsTreeBodyFrame.cpp
+++ b/layout/xul/base/src/tree/src/nsTreeBodyFrame.cpp
@@ -855,16 +855,17 @@ FindScrollParts(nsIFrame* aCurrFrame, ns
       }
     }
     // don't bother searching inside a scrollbar
     return;
   }
   
   nsIFrame* child = aCurrFrame->GetFirstChild(nsnull);
   while (child &&
+         !child->GetContent()->IsRootOfNativeAnonymousSubtree() &&
          (!aResult->mVScrollbar || !aResult->mHScrollbar ||
           !aResult->mColumnsScrollFrame)) {
     FindScrollParts(child, aResult);
     child = child->GetNextSibling();
   }
 }
 
 nsTreeBodyFrame::ScrollParts nsTreeBodyFrame::GetScrollParts()