mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-19 00:05:36 +00:00
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:
parent
b07f94b3ae
commit
0334aa2c5f
8
layout/forms/crashtests/1679471.html
Normal file
8
layout/forms/crashtests/1679471.html
Normal file
@ -0,0 +1,8 @@
|
||||
<style>
|
||||
* {
|
||||
rotate: 0.8339rad;
|
||||
inset: 84pt -15742cm 8% ! important;
|
||||
position: fixed;
|
||||
}
|
||||
</style>
|
||||
<button>
|
@ -75,3 +75,4 @@ load 1488219.html
|
||||
load 1600207.html
|
||||
load 1600367.html
|
||||
load 1617753.html
|
||||
load 1679471.html
|
||||
|
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user