version 1.204, 2005/04/13 16:26:58
|
version 1.205, 2005/05/30 14:13:44
|
Line 3815 void SetDisplaystyleMathElement (Eleme
|
Line 3815 void SetDisplaystyleMathElement (Eleme
|
display = MathML_ATTR_IntDisplaystyle_VAL_false; |
display = MathML_ATTR_IntDisplaystyle_VAL_false; |
if (parentType.ElTypeNum == HTML_EL_BODY || |
if (parentType.ElTypeNum == HTML_EL_BODY || |
parentType.ElTypeNum == HTML_EL_Division) |
parentType.ElTypeNum == HTML_EL_Division) |
|
/* the <math> element is a child of a <body> or <div> */ |
display = MathML_ATTR_IntDisplaystyle_VAL_true; |
display = MathML_ATTR_IntDisplaystyle_VAL_true; |
else if (parentType.ElTypeNum == HTML_EL_Pseudo_paragraph || |
else if (parentType.ElTypeNum == HTML_EL_Pseudo_paragraph || |
parentType.ElTypeNum == HTML_EL_Paragraph) |
parentType.ElTypeNum == HTML_EL_Paragraph) |
|
/* the <math> element is a child of a <p> or equivalent */ |
{ |
{ |
sibling = el; |
sibling = el; |
TtaPreviousSibling (&sibling); |
TtaPreviousSibling (&sibling); |
Line 3826 void SetDisplaystyleMathElement (Eleme
|
Line 3828 void SetDisplaystyleMathElement (Eleme
|
sibling = el; |
sibling = el; |
TtaNextSibling (&sibling); |
TtaNextSibling (&sibling); |
if (!sibling) |
if (!sibling) |
|
/* the <math> element is alone in its paragraph */ |
display = MathML_ATTR_IntDisplaystyle_VAL_true; |
display = MathML_ATTR_IntDisplaystyle_VAL_true; |
} |
} |
} |
} |