Diff for /Amaya/amaya/MathMLbuilder.c between versions 1.241 and 1.242

version 1.241, 2010/07/19 12:07:07 version 1.242, 2010/07/19 13:33:44
Line 2889  void MathMLScriptShift (Document doc, El Line 2889  void MathMLScriptShift (Document doc, El
                 pval.typed_data.unit = UNIT_EM;                  pval.typed_data.unit = UNIT_EM;
               pval.typed_data.mainValue = TRUE;                pval.typed_data.mainValue = TRUE;
               /* the specific presentation to be created is not a CSS rule */                /* the specific presentation to be created is not a CSS rule */
               ctxt->cssSpecificity = 0;                ctxt->cssSpecificity = 2000;
               if (attr == MathML_ATTR_superscriptshift)                if (attr == MathML_ATTR_superscriptshift)
                 pval.typed_data.value = - pval.typed_data.value;                  pval.typed_data.value = - pval.typed_data.value;
               TtaSetStylePresentation (PRVertPos, script, NULL, ctxt, pval);                TtaSetStylePresentation (PRVertPos, script, NULL, ctxt, pval);
Line 3344  void HandleRowspacingAttribute (Attribut Line 3344  void HandleRowspacingAttribute (Attribut
   
   ctxt = TtaGetSpecificStyleContext (doc);    ctxt = TtaGetSpecificStyleContext (doc);
   /* the specific presentation to be created is not a CSS rule */    /* the specific presentation to be created is not a CSS rule */
   ctxt->cssSpecificity = 0;    ctxt->cssSpecificity = 2000;
   ptr = value;    ptr = value;
   rowspanType.AttrSSchema = elType.ElSSchema;    rowspanType.AttrSSchema = elType.ElSSchema;
   rowspanType.AttrTypeNum = MathML_ATTR_rowspan_;    rowspanType.AttrTypeNum = MathML_ATTR_rowspan_;
Line 3617  void HandleColumnspacingAttribute (Attri Line 3617  void HandleColumnspacingAttribute (Attri
   
   ctxt = TtaGetSpecificStyleContext (doc);    ctxt = TtaGetSpecificStyleContext (doc);
   /* the specific presentation to be created is not a CSS rule */    /* the specific presentation to be created is not a CSS rule */
   ctxt->cssSpecificity = 0;    ctxt->cssSpecificity = 2000;
   val = 0;    val = 0;
   colspanType.AttrSSchema = elType.ElSSchema;    colspanType.AttrSSchema = elType.ElSSchema;
   colspanType.AttrTypeNum = MathML_ATTR_columnspan;    colspanType.AttrTypeNum = MathML_ATTR_columnspan;
Line 4166  void HandleFramespacingAttribute (Attrib Line 4166  void HandleFramespacingAttribute (Attrib
     }      }
   ctxt = TtaGetSpecificStyleContext (doc);    ctxt = TtaGetSpecificStyleContext (doc);
   /* the specific presentation to be created is not a CSS rule */    /* the specific presentation to be created is not a CSS rule */
   ctxt->cssSpecificity = 0;    ctxt->cssSpecificity = 2000;
   vertPadding = 0;    vertPadding = 0;
   horizPadding = 0;    horizPadding = 0;
   vertPaddingUnit = UNIT_PT;    vertPaddingUnit = UNIT_PT;
Line 4361  void EvaluateChildRendering (Element el, Line 4361  void EvaluateChildRendering (Element el,
   int                  length;    int                  length;
   
   ctxt = TtaGetSpecificStyleContext (doc);    ctxt = TtaGetSpecificStyleContext (doc);
   ctxt->cssSpecificity = 0;   /* the presentation rule to be set is not a CSS rule */    ctxt->cssSpecificity = 2000;   /* the presentation rule to be set is not a CSS rule */
   /* prepare the value of the rule */    /* prepare the value of the rule */
   pval.typed_data.unit = UNIT_PX;    pval.typed_data.unit = UNIT_PX;
   pval.typed_data.value = 0;    pval.typed_data.value = 0;
Line 4893  void MathMLSetScriptLevel (Document doc, Line 4893  void MathMLSetScriptLevel (Document doc,
           pval.typed_data.value = percentage;            pval.typed_data.value = percentage;
           pval.typed_data.unit = UNIT_PERCENT;            pval.typed_data.unit = UNIT_PERCENT;
           /* the specific presentation to be created is not a CSS rule */            /* the specific presentation to be created is not a CSS rule */
           ctxt->cssSpecificity = 0;            ctxt->cssSpecificity = 2000;
           TtaSetStylePresentation (PRSize, el, NULL, ctxt, pval);                   TtaSetStylePresentation (PRSize, el, NULL, ctxt, pval);       
         }          }
     }      }
Line 4957  void MathMLSpacingAttr (Document doc, El Line 4957  void MathMLSpacingAttr (Document doc, El
           if (pval.typed_data.unit == UNIT_BOX)            if (pval.typed_data.unit == UNIT_BOX)
             pval.typed_data.unit = UNIT_PX;              pval.typed_data.unit = UNIT_PX;
           /* the specific presentation to be created is not a CSS rule */            /* the specific presentation to be created is not a CSS rule */
           ctxt->cssSpecificity = 0;            ctxt->cssSpecificity = 2000;
           TtaSetStylePresentation (ruleType, el, NULL, ctxt, pval);            TtaSetStylePresentation (ruleType, el, NULL, ctxt, pval);
         }          }
       TtaFreeMemory(tmp);        TtaFreeMemory(tmp);

Removed from v.1.241  
changed lines
  Added in v.1.242


Webmaster