Bug 1307806 - [css-grid][css-flexbox][css-align] Implement nsLayoutUtils::GetFirstLineBaseline for flex/grid containers. r=dholbert

This commit is contained in:
Mats Palmgren 2016-10-06 22:43:22 +02:00
Родитель 55974a1a48
Коммит bd83953853
1 изменённых файлов: 3 добавлений и 1 удалений

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

@ -6169,7 +6169,9 @@ nsLayoutUtils::GetFirstLinePosition(WritingMode aWM,
// For the first-line baseline we also have to check for a table, and if
// so, use the baseline of its first row.
nsIAtom* fType = aFrame->GetType();
if (fType == nsGkAtoms::tableWrapperFrame) {
if (fType == nsGkAtoms::tableWrapperFrame ||
fType == nsGkAtoms::flexContainerFrame ||
fType == nsGkAtoms::gridContainerFrame) {
aResult->mBStart = 0;
aResult->mBaseline = aFrame->GetLogicalBaseline(aWM);
// This is what we want for the list bullet caller; not sure if