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
Родитель b04852c37c
Коммит 0350362d3a
1 изменённых файлов: 5 добавлений и 0 удалений

Просмотреть файл

@ -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.