Bug 1171419 part 9 - Implement list-item numbering for flex containers. r=xidorn

This commit is contained in:
Mats Palmgren 2016-09-01 17:36:23 +02:00
Родитель 2e21f27897
Коммит 048fee4b1e
1 изменённых файлов: 6 добавлений и 0 удалений

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

@ -3850,6 +3850,8 @@ nsFlexContainerFrame::Reflow(nsPresContext* aPresContext,
SortChildrenIfNeeded<IsOrderLEQWithDOMFallback>();
}
RenumberLists();
const FlexboxAxisTracker axisTracker(this, aReflowInput.GetWritingMode());
// If we're being fragmented into a constrained BSize, then subtract off
@ -4389,6 +4391,8 @@ nsFlexContainerFrame::GetMinISize(nsRenderingContext* aRenderingContext)
nscoord minWidth = 0;
DISPLAY_MIN_WIDTH(this, minWidth);
RenumberLists();
const nsStylePosition* stylePos = StylePosition();
const FlexboxAxisTracker axisTracker(this, GetWritingMode());
@ -4416,6 +4420,8 @@ nsFlexContainerFrame::GetPrefISize(nsRenderingContext* aRenderingContext)
nscoord prefWidth = 0;
DISPLAY_PREF_WIDTH(this, prefWidth);
RenumberLists();
// XXXdholbert Optimization: We could cache our intrinsic widths like
// nsBlockFrame does (and return it early from this function if it's set).
// Whenever anything happens that might change it, set it to