Backed out changeset 2b29602d9850 (bug 995519) for suspicion of causing Reftest 20 test failure on a CLOSED TREE

This commit is contained in:
Carsten "Tomcat" Book 2014-07-15 10:21:36 +02:00
parent a0e0efbee0
commit f6a5f99ba1

View File

@ -2436,6 +2436,11 @@ ScrollFrameHelper::BuildDisplayList(nsDisplayListBuilder* aBuilder,
bool addScrollBars = mIsRoot &&
nsLayoutUtils::GetDisplayPort(mOuter->GetContent()) &&
!aBuilder->IsForEventDelivery();
// For now, don't add them for display root documents, cause we've never
// had them there.
if (aBuilder->RootReferenceFrame()->PresContext() == mOuter->PresContext()) {
addScrollBars = false;
}
if (addScrollBars) {
// Add classic scrollbars.