зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1307806 - [css-grid][css-flexbox][css-align] Implement nsLayoutUtils::GetFirstLineBaseline for flex/grid containers. r=dholbert
This commit is contained in:
Родитель
55974a1a48
Коммит
bd83953853
|
@ -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
|
||||
|
|
Загрузка…
Ссылка в новой задаче