Closed Bug 368430 Opened 18 years ago Closed 17 years ago

"ASSERTION: unexpected frame type" with text in maction

Categories

(Core :: MathML, defect)

PowerPC
macOS
defect
Not set
normal

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: jruderman, Assigned: rbs)

References

Details

(Keywords: assertion, testcase)

Attachments

(1 file)

137 bytes, application/xhtml+xml
Details
Attached file testcase
Loading the testcase triggers:

###!!! ASSERTION: unexpected frame type: 'Not Reached', file /Users/admin/trunk/mozilla/layout/base/nsCSSFrameConstructor.cpp, line 10620
Looks like a bug in nsMathMLmactionFrame::Reflow.  It sets a constrained available height on the single child (which implies that pagination or columnation is happening), then just outputs the child's aStatus.  Then we try to create a continuation for the nsMathMLmactionFrame and that fails.

I _think_ this code wants to use an unconstrained available height...
Flags: blocking1.9?
Flags: blocking1.9? → blocking1.9+
Here is some data from nsMathMLmactionFrame::Reflow in the testcase:
<<<<< REFLOW, aReflowState.ComputedWidth = 0
<<<<< REFLOW, aReflowState.ComputedHeight = 1073741824

I don't really understand much what all that means, but zero somehow seems wrong NS_UNCONSTRAINEDSIZE is 1073741824..

Moreover, if I use 
nsSize availSize(NS_UNCONSTRAINEDSIZE, NS_UNCONSTRAINEDSIZE);
in nsMathMLmactionFrame::Reflow()

instead of 
nsSize availSize(aReflowState.ComputedWidth(),
                 aReflowState.ComputedHeight());

the assert's gone, and the rendered page matches the 1.8's one.

Moreover, if I use above in the testcase for bug 378146, the crash is gone..
I'm on getting this assertion (on Linux).
I wonder whether bug 397518 has changed the behavior.
(In reply to comment #3)
> I'm on getting this assertion (on Linux).

That should be: I'm not getting this assertion.
WFM (Mac trunk debug).
Status: NEW → RESOLVED
Closed: 17 years ago
Resolution: --- → WORKSFORME
Flags: in-testsuite?
Crashtest checked in.
Flags: in-testsuite? → in-testsuite+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: