зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
4ab3ae7306
Коммит
76cde2dd38
|
@ -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 {
|
||||
|
|
Загрузка…
Ссылка в новой задаче