зеркало из https://github.com/mozilla/gecko-dev.git
Backed out changeset 2b29602d9850 (bug 995519) for suspicion of causing Reftest 20 test failure on a CLOSED TREE
This commit is contained in:
Родитель
b04852c37c
Коммит
0350362d3a
|
@ -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.
|
||||
|
|
Загрузка…
Ссылка в новой задаче