зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1171419 part 9 - Implement list-item numbering for flex containers. r=xidorn
This commit is contained in:
Родитель
2e21f27897
Коммит
048fee4b1e
|
@ -3850,6 +3850,8 @@ nsFlexContainerFrame::Reflow(nsPresContext* aPresContext,
|
||||||
SortChildrenIfNeeded<IsOrderLEQWithDOMFallback>();
|
SortChildrenIfNeeded<IsOrderLEQWithDOMFallback>();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
RenumberLists();
|
||||||
|
|
||||||
const FlexboxAxisTracker axisTracker(this, aReflowInput.GetWritingMode());
|
const FlexboxAxisTracker axisTracker(this, aReflowInput.GetWritingMode());
|
||||||
|
|
||||||
// If we're being fragmented into a constrained BSize, then subtract off
|
// If we're being fragmented into a constrained BSize, then subtract off
|
||||||
|
@ -4389,6 +4391,8 @@ nsFlexContainerFrame::GetMinISize(nsRenderingContext* aRenderingContext)
|
||||||
nscoord minWidth = 0;
|
nscoord minWidth = 0;
|
||||||
DISPLAY_MIN_WIDTH(this, minWidth);
|
DISPLAY_MIN_WIDTH(this, minWidth);
|
||||||
|
|
||||||
|
RenumberLists();
|
||||||
|
|
||||||
const nsStylePosition* stylePos = StylePosition();
|
const nsStylePosition* stylePos = StylePosition();
|
||||||
const FlexboxAxisTracker axisTracker(this, GetWritingMode());
|
const FlexboxAxisTracker axisTracker(this, GetWritingMode());
|
||||||
|
|
||||||
|
@ -4416,6 +4420,8 @@ nsFlexContainerFrame::GetPrefISize(nsRenderingContext* aRenderingContext)
|
||||||
nscoord prefWidth = 0;
|
nscoord prefWidth = 0;
|
||||||
DISPLAY_PREF_WIDTH(this, prefWidth);
|
DISPLAY_PREF_WIDTH(this, prefWidth);
|
||||||
|
|
||||||
|
RenumberLists();
|
||||||
|
|
||||||
// XXXdholbert Optimization: We could cache our intrinsic widths like
|
// XXXdholbert Optimization: We could cache our intrinsic widths like
|
||||||
// nsBlockFrame does (and return it early from this function if it's set).
|
// nsBlockFrame does (and return it early from this function if it's set).
|
||||||
// Whenever anything happens that might change it, set it to
|
// Whenever anything happens that might change it, set it to
|
||||||
|
|
Загрузка…
Ссылка в новой задаче