Bug 1174711 patch 5 - Copy inline-size rather than width from prev-in-flow when initializing nsTableFrame. r=dholbert

This commit is contained in:
Jonathan Kew 2015-06-24 16:23:59 -07:00
Родитель 04d31b315b
Коммит 55b7401f32
1 изменённых файлов: 4 добавлений и 3 удалений

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

@ -182,9 +182,10 @@ nsTableFrame::Init(nsIContent* aContent,
mTableLayoutStrategy = new FixedTableLayoutStrategy(this);
}
} else {
// set my width, because all frames in a table flow are the same width and
// code in nsTableOuterFrame depends on this being set
mRect.width = aPrevInFlow->GetSize().width;
// Set my isize, because all frames in a table flow are the same isize and
// code in nsTableOuterFrame depends on this being set.
WritingMode wm = GetWritingMode();
SetSize(LogicalSize(wm, aPrevInFlow->ISize(wm), BSize(wm)));
}
}