mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-28 23:31:56 +00:00
Backed out changeset d935c88d79d6 (bug 1237754) for OS X refrest failures
This commit is contained in:
parent
643e40a735
commit
4a40c9ed19
@ -2936,17 +2936,15 @@ nsGridContainerFrame::Tracks::AlignJustifyContent(
|
||||
|
||||
const bool isAlign = mAxis == eLogicalAxisBlock;
|
||||
auto stylePos = aReflowState.mStylePosition;
|
||||
auto valueAndFallback = isAlign ? stylePos->ComputedAlignContent() :
|
||||
stylePos->ComputedJustifyContent();
|
||||
const auto valueAndFallback = isAlign ?
|
||||
stylePos->ComputedAlignContent() :
|
||||
stylePos->ComputedJustifyContent();
|
||||
WritingMode wm = aReflowState.GetWritingMode();
|
||||
bool overflowSafe;
|
||||
auto alignment = ::GetAlignJustifyValue(valueAndFallback, wm, isAlign,
|
||||
&overflowSafe);
|
||||
if (alignment == NS_STYLE_ALIGN_NORMAL) {
|
||||
MOZ_ASSERT(valueAndFallback == NS_STYLE_ALIGN_NORMAL,
|
||||
"*-content:normal cannot be specified with explicit fallback");
|
||||
alignment = isAlign ? NS_STYLE_ALIGN_STRETCH : NS_STYLE_ALIGN_START;
|
||||
valueAndFallback = alignment; // we may need a fallback for 'stretch' below
|
||||
alignment = NS_STYLE_ALIGN_START;
|
||||
}
|
||||
|
||||
// Compute the free space and count auto-sized tracks.
|
||||
|
Loading…
Reference in New Issue
Block a user