Closed
      
        Bug 713606
      
      
        Opened 13 years ago
          Closed 11 years ago
      
        
    
  
"ASSERTION: aWhichFlags should only be displaystyle or compression flag"  
    Categories
(Core :: MathML, defect)
Tracking
()
        RESOLVED
        FIXED
        
    
  
        
            mozilla29
        
    
  
People
(Reporter: jruderman, Assigned: fredw)
References
Details
(Keywords: assertion, testcase, Whiteboard: [mentor=fredw][lang=c++])
Attachments
(2 files)
###!!! 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
| Reporter | ||
| Comment 1•13 years ago
           | ||
| Assignee | ||
| Comment 2•13 years ago
           | ||
This assertion was added in bug 534963.
| Assignee | ||
| Comment 3•12 years ago
           | ||
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++]
| Assignee | ||
| Comment 4•11 years ago
           | ||
Fixed per bug 838506.
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
| Updated•11 years ago
           | 
Assignee: nobody → fred.wang
Target Milestone: --- → mozilla29
          You need to log in
          before you can comment on or make changes to this bug.
        
Description
•