Diff for /Amaya/amaya/styleparser.c between versions 1.256 and 1.257

version 1.256, 2004/03/10 16:03:45 version 1.257, 2004/03/10 17:19:07
Line 1262  static char *ParseCSSFloat (Element elem Line 1262  static char *ParseCSSFloat (Element elem
                             PresentationContext context, char *cssRule,                              PresentationContext context, char *cssRule,
                             CSSInfoPtr css, ThotBool isHTML)                              CSSInfoPtr css, ThotBool isHTML)
 {  {
     DisplayMode         dispMode;
   PresentationValue   pval;    PresentationValue   pval;
   
   pval.typed_data.value = 0;    pval.typed_data.value = 0;
Line 1285  static char *ParseCSSFloat (Element elem Line 1286  static char *ParseCSSFloat (Element elem
     {      {
       if (DoApply)        if (DoApply)
         {          {
             dispMode = TtaGetDisplayMode (context->doc);
             if (dispMode != NoComputedDisplay)
               {
               /* force a redisplay of the whole document */
               TtaSetDisplayMode (context->doc, NoComputedDisplay);
   #ifdef AMAYA_DEBUG
               /*printf ("Force NoComputedDisplay doc=%d\n", context->doc);*/
   #endif /* AMAYA_DEBUG */
               }
           if (tsch)            if (tsch)
             cssRule = CheckImportantRule (cssRule, context);              cssRule = CheckImportantRule (cssRule, context);
           TtaSetStylePresentation (PRFloat, element, tsch, context, pval);            TtaSetStylePresentation (PRFloat, element, tsch, context, pval);
Line 4275  static void  ParseCSSRule (Element eleme Line 4285  static void  ParseCSSRule (Element eleme
 void  ParseHTMLSpecificStyle (Element el, char *cssRule, Document doc,  void  ParseHTMLSpecificStyle (Element el, char *cssRule, Document doc,
                               int specificity, ThotBool destroy)                                int specificity, ThotBool destroy)
 {  {
     DisplayMode         dispMode;
   PresentationContext ctxt;    PresentationContext ctxt;
   ElementType         elType;    ElementType         elType;
   ThotBool            isHTML;    ThotBool            isHTML;
Line 4304  void  ParseHTMLSpecificStyle (Element el Line 4315  void  ParseHTMLSpecificStyle (Element el
   ctxt->destroy = destroy;    ctxt->destroy = destroy;
   /* first use of the context */    /* first use of the context */
   ctxt->uses = 1;    ctxt->uses = 1;
     /* save the current display mode */
     dispMode = TtaGetDisplayMode (doc);
   /* Call the parser */    /* Call the parser */
   ParseCSSRule (el, NULL, (PresentationContext) ctxt, cssRule, NULL, isHTML);    ParseCSSRule (el, NULL, (PresentationContext) ctxt, cssRule, NULL, isHTML);
     /* restore the display mode if necessary */
     TtaSetDisplayMode (doc, dispMode);
   /* check if the context can be freed */    /* check if the context can be freed */
   ctxt->uses -= 1;    ctxt->uses -= 1;
   if (ctxt->uses == 0)    if (ctxt->uses == 0)

Removed from v.1.256  
changed lines
  Added in v.1.257


Webmaster