Closed Bug 713606 Opened 13 years ago Closed 10 years ago

"ASSERTION: aWhichFlags should only be displaystyle or compression flag"

Categories

(Core :: MathML, defect)

x86_64
macOS
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla29

People

(Reporter: jruderman, Assigned: fredw)

References

Details

(Keywords: assertion, testcase, Whiteboard: [mentor=fredw][lang=c++])

Attachments

(2 files)

Attached file testcase
###!!! ASSERTION: aWhichFlags should only be displaystyle or compression flag: 'NS_MATHML_IS_DISPLAYSTYLE(aWhichFlags) || NS_MATHML_IS_COMPRESSED(aWhichFlags)', file layout/mathml/nsMathMLFrame.cpp, line 160
Attached file stack trace
This assertion was added in bug 534963.
Here are another way to get the assertion:

   <math>
      <msubsup>
        <mtext>X</mtext>
        <mtable displaystyle="true"/>
	</mtext>Y</mtext>
      </msubsup>
    </math>

(or same with mtable replaced by mstyle). 

nsMathMLmtableOuterFrame::UpdatePresentationData and nsMathMLmstyleFrame::UpdatePresentationData intentionally disable the flag for displaystyle update and then call the their ancestor UpdatePresentationData, possibly to update the compression flag. So I'm not sure adding the assertion was quite correct or otherwise we would have to verify in each UpdatePresentationData that disable the displaystyle flag that the compression flag is set before calling the ancestor UpdatePresentationData...

I suspect fixing bug 838506 would also solve that issue.
Whiteboard: [mentor=fredw][lang=c++]
Depends on: 838506
Fixed per bug 838506.
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Assignee: nobody → fred.wang
Target Milestone: --- → mozilla29
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: