Bug 1321703 - Use the margin-box when synthesizing a baseline from a block line with a non-visible-overflow child frame. r=dholbert

This commit is contained in:
Mats Palmgren 2016-12-03 18:53:56 +01:00
Родитель 4ab3ae7306
Коммит 76cde2dd38
1 изменённых файлов: 5 добавлений и 4 удалений

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

@ -5942,10 +5942,11 @@ nsLayoutUtils::GetLastLineBaseline(WritingMode aWM,
kid->GetLogicalNormalPosition(aWM, containerSize).B(aWM);
return true;
} else if (kid->GetType() == nsGkAtoms::scrollFrame) {
// Use the bottom of the scroll frame.
// XXX CSS2.1 really doesn't say what to do here.
*aResult = kid->GetLogicalNormalPosition(aWM, containerSize).B(aWM) +
kid->BSize(aWM);
// Defer to nsFrame::GetLogicalBaseline (which synthesizes a baseline
// from the margin-box).
kidBaseline = kid->GetLogicalBaseline(aWM);
*aResult = kidBaseline +
kid->GetLogicalNormalPosition(aWM, containerSize).B(aWM);
return true;
}
} else {