diff options
author | janekptacijarabaci <janekptacijarabaci@seznam.cz> | 2018-07-20 09:09:36 +0200 |
---|---|---|
committer | janekptacijarabaci <janekptacijarabaci@seznam.cz> | 2018-07-20 09:09:36 +0200 |
commit | b12973bc9aa26f548549306eaec4146bf60d65d5 (patch) | |
tree | fa102cb1bb60f52dd35d28d270e4aa0cad24f936 /layout/generic | |
parent | 24b11942e9e97cd48dda83646d4f7ec702b23eba (diff) | |
download | UXP-b12973bc9aa26f548549306eaec4146bf60d65d5.tar UXP-b12973bc9aa26f548549306eaec4146bf60d65d5.tar.gz UXP-b12973bc9aa26f548549306eaec4146bf60d65d5.tar.lz UXP-b12973bc9aa26f548549306eaec4146bf60d65d5.tar.xz UXP-b12973bc9aa26f548549306eaec4146bf60d65d5.zip |
Bug 958714 Remove special case for flex & grid items' percent block-axis margin/padding resolution, to align with other browsers
Diffstat (limited to 'layout/generic')
-rw-r--r-- | layout/generic/ReflowInput.cpp | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/layout/generic/ReflowInput.cpp b/layout/generic/ReflowInput.cpp index a8756cea2..72624d55c 100644 --- a/layout/generic/ReflowInput.cpp +++ b/layout/generic/ReflowInput.cpp @@ -2142,14 +2142,11 @@ OffsetPercentBasis(const nsIFrame* aFrame, WritingMode aWM, const LogicalSize& aContainingBlockSize) { + // XXX The next patch in this series will get rid of this function and have + // the upstream/downstream code just work with the one nscoord value that + // we'll be dealing with now (which is aContainingBlockSize.ISize(aWM)). LogicalSize offsetPercentBasis = aContainingBlockSize; - if (MOZ_LIKELY(!aFrame->GetParent() || - !aFrame->GetParent()->IsFlexOrGridContainer())) { - offsetPercentBasis.BSize(aWM) = offsetPercentBasis.ISize(aWM); - } else if (offsetPercentBasis.BSize(aWM) == NS_AUTOHEIGHT) { - offsetPercentBasis.BSize(aWM) = 0; - } - + offsetPercentBasis.BSize(aWM) = offsetPercentBasis.ISize(aWM); return offsetPercentBasis; } |