Bug 1679471 - Demote fatal assertions to warnings since they depend on calculated nscoord values. r=TYLin

Differential Revision: https://phabricator.services.mozilla.com/D98125
This commit is contained in:
Mats Palmgren 2020-11-30 18:08:16 +00:00
parent b07f94b3ae
commit 0334aa2c5f
3 changed files with 14 additions and 4 deletions

View File

@ -0,0 +1,8 @@
<style>
* {
rotate: 0.8339rad;
inset: 84pt -15742cm 8% ! important;
position: fixed;
}
</style>
<button>

View File

@ -75,3 +75,4 @@ load 1488219.html
load 1600207.html
load 1600367.html
load 1617753.html
load 1679471.html

View File

@ -1511,10 +1511,11 @@ bool ReflowInput::IsInlineSizeComputableByBlockSizeAndAspectRatio(
LogicalSize ReflowInput::CalculateAbsoluteSizeWithResolvedAutoBlockSize(
nscoord aAutoBSize, bool aNeedsComputeInlineSizeByAspectRatio,
const LogicalSize& aTentativeComputedSize) {
MOZ_ASSERT(aAutoBSize != NS_UNCONSTRAINEDSIZE,
"Shouldn't give an unresolved block size");
MOZ_ASSERT(!mFrame->IsFrameOfType(nsIFrame::eReplaced),
"Replaced element shouldn't have the unconstrained block size");
NS_WARNING_ASSERTION(aAutoBSize != NS_UNCONSTRAINEDSIZE,
"Shouldn't give an unresolved block size");
NS_WARNING_ASSERTION(
!mFrame->IsFrameOfType(nsIFrame::eReplaced),
"Replaced element shouldn't have unconstrained block size");
LogicalSize resultSize = aTentativeComputedSize;
WritingMode wm = GetWritingMode();