Diff for /Amaya/amaya/styleparser.c between versions 1.369 and 1.370

version 1.369, 2006/11/03 15:12:33 version 1.370, 2006/11/10 16:27:14
Line 1440  static char *ParseCSSBorderTop (Element Line 1440  static char *ParseCSSBorderTop (Element
                                 PresentationContext context, char *cssRule,                                  PresentationContext context, char *cssRule,
                                 CSSInfoPtr css, ThotBool isHTML)                                  CSSInfoPtr css, ThotBool isHTML)
 {  {
   char           *ptr;    PresentationValue   best;
   ThotBool        style, width;    char               *ptr;
     ThotBool            style, width, color;
   
   cssRule = SkipBlanksAndComments (cssRule);    cssRule = SkipBlanksAndComments (cssRule);
   /* register given values */    /* register given values */
   if (!strncmp (cssRule, "none", 4))    if (!strncmp (cssRule, "none", 4))
     style = width = TRUE;      style = width = color = TRUE;
   else    else
     style = width = FALSE;      style = width = color = FALSE;
   while (*cssRule != ';' && *cssRule != '}' && *cssRule != EOS && *cssRule != ',')    while (*cssRule != ';' && *cssRule != '}' && *cssRule != EOS && *cssRule != ',')
     {      {
       ptr = cssRule;        ptr = cssRule;
Line 1457  static char *ParseCSSBorderTop (Element Line 1458  static char *ParseCSSBorderTop (Element
         {          {
           cssRule = ParseCSSBorderTopWidth (element, tsch, context, cssRule, css, isHTML);            cssRule = ParseCSSBorderTopWidth (element, tsch, context, cssRule, css, isHTML);
           if (ptr == cssRule)            if (ptr == cssRule)
             cssRule = ParseCSSBorderColorTop (element, tsch, context, cssRule, css, isHTML);              {
                 cssRule = ParseCSSBorderColorTop (element, tsch, context, cssRule, css, isHTML);
                 if (ptr != cssRule)
                   color = TRUE;
               }
           else            else
             width = TRUE;              width = TRUE;
           if (ptr == cssRule)            if (ptr == cssRule)
Line 1476  static char *ParseCSSBorderTop (Element Line 1481  static char *ParseCSSBorderTop (Element
     ParseCSSBorderTopWidth (element, tsch, context, "medium", css, isHTML);      ParseCSSBorderTopWidth (element, tsch, context, "medium", css, isHTML);
   if (!style)    if (!style)
     ParseCSSBorderStyleTop (element, tsch, context, "none", css, isHTML);      ParseCSSBorderStyleTop (element, tsch, context, "none", css, isHTML);
     if (!color && DoApply)
       {
         /* get the box color */
         best.typed_data.value = -1;
         best.typed_data.unit = UNIT_REL; 
         best.typed_data.real = FALSE;
         TtaSetStylePresentation (PRBorderTopColor, element, tsch, context, best);
       }
   return (cssRule);    return (cssRule);
 }  }
   
Line 1487  static char *ParseCSSBorderLeft (Element Line 1500  static char *ParseCSSBorderLeft (Element
                                  PresentationContext context, char *cssRule,                                   PresentationContext context, char *cssRule,
                                  CSSInfoPtr css, ThotBool isHTML)                                   CSSInfoPtr css, ThotBool isHTML)
 {  {
   char           *ptr;    PresentationValue   best;
   ThotBool        style, width;    char               *ptr;
     ThotBool            style, width, color;
   
   cssRule = SkipBlanksAndComments (cssRule);    cssRule = SkipBlanksAndComments (cssRule);
   /* register given values */    /* register given values */
   if (!strncmp (cssRule, "none", 4))    if (!strncmp (cssRule, "none", 4))
     style = width = TRUE;      style = width = color = TRUE;
   else    else
     style = width = FALSE;      style = width = color = FALSE;
   while (*cssRule != ';' && *cssRule != '}' && *cssRule != EOS && *cssRule != ',')    while (*cssRule != ';' && *cssRule != '}' && *cssRule != EOS && *cssRule != ',')
     {      {
       ptr = cssRule;        ptr = cssRule;
Line 1504  static char *ParseCSSBorderLeft (Element Line 1518  static char *ParseCSSBorderLeft (Element
         {          {
           cssRule = ParseCSSBorderLeftWidth (element, tsch, context, cssRule, css, isHTML);            cssRule = ParseCSSBorderLeftWidth (element, tsch, context, cssRule, css, isHTML);
           if (ptr == cssRule)            if (ptr == cssRule)
             cssRule = ParseCSSBorderColorLeft (element, tsch, context, cssRule, css, isHTML);              {
                 cssRule = ParseCSSBorderColorLeft (element, tsch, context, cssRule, css, isHTML);
                 if (ptr != cssRule)
                   color = TRUE;
               }
           else            else
             width = TRUE;              width = TRUE;
           if (ptr == cssRule)            if (ptr == cssRule)
Line 1523  static char *ParseCSSBorderLeft (Element Line 1541  static char *ParseCSSBorderLeft (Element
     ParseCSSBorderLeftWidth (element, tsch, context, "medium", css, isHTML);      ParseCSSBorderLeftWidth (element, tsch, context, "medium", css, isHTML);
   if (!style)    if (!style)
     ParseCSSBorderStyleLeft (element, tsch, context, "none", css, isHTML);      ParseCSSBorderStyleLeft (element, tsch, context, "none", css, isHTML);
     if (!color && DoApply)
       {
         /* get the box color */
         best.typed_data.value = -1;
         best.typed_data.unit = UNIT_REL;
         best.typed_data.real = FALSE;
         TtaSetStylePresentation (PRBorderLeftColor, element, tsch, context, best);
       }
   return (cssRule);    return (cssRule);
 }  }
   
Line 1534  static char *ParseCSSBorderBottom (Eleme Line 1560  static char *ParseCSSBorderBottom (Eleme
                                    PresentationContext context, char *cssRule,                                     PresentationContext context, char *cssRule,
                                    CSSInfoPtr css, ThotBool isHTML)                                     CSSInfoPtr css, ThotBool isHTML)
 {  {
   char           *ptr;    PresentationValue   best;
   ThotBool        style, width;    char               *ptr;
     ThotBool            style, width, color;
   
   cssRule = SkipBlanksAndComments (cssRule);    cssRule = SkipBlanksAndComments (cssRule);
   /* register given values */    /* register given values */
   if (!strncmp (cssRule, "none", 4))    if (!strncmp (cssRule, "none", 4))
     style = width = TRUE;      style = width = color = TRUE;
   else    else
     style = width = FALSE;      style = width = color = FALSE;
   while (*cssRule != ';' && *cssRule != '}' && *cssRule != EOS && *cssRule != ',')    while (*cssRule != ';' && *cssRule != '}' && *cssRule != EOS && *cssRule != ',')
     {      {
       ptr = cssRule;        ptr = cssRule;
Line 1551  static char *ParseCSSBorderBottom (Eleme Line 1578  static char *ParseCSSBorderBottom (Eleme
         {          {
           cssRule = ParseCSSBorderBottomWidth (element, tsch, context, cssRule, css, isHTML);            cssRule = ParseCSSBorderBottomWidth (element, tsch, context, cssRule, css, isHTML);
           if (ptr == cssRule)            if (ptr == cssRule)
             cssRule = ParseCSSBorderColorBottom (element, tsch, context, cssRule, css, isHTML);              {
                 cssRule = ParseCSSBorderColorBottom (element, tsch, context, cssRule, css, isHTML);
                 if (ptr != cssRule)
                   color = TRUE;
               }
           else            else
             width = TRUE;              width = TRUE;
           if (ptr == cssRule)            if (ptr == cssRule)
Line 1570  static char *ParseCSSBorderBottom (Eleme Line 1601  static char *ParseCSSBorderBottom (Eleme
     ParseCSSBorderBottomWidth (element, tsch, context, "medium", css, isHTML);      ParseCSSBorderBottomWidth (element, tsch, context, "medium", css, isHTML);
   if (!style)    if (!style)
     ParseCSSBorderStyleBottom (element, tsch, context, "none", css, isHTML);      ParseCSSBorderStyleBottom (element, tsch, context, "none", css, isHTML);
     if (!color && DoApply)
       {
         /* get the box color */
         best.typed_data.value = -1;
         best.typed_data.unit = UNIT_REL;
         best.typed_data.real = FALSE;
         TtaSetStylePresentation (PRBorderBottomColor, element, tsch, context, best);
       }
   return (cssRule);    return (cssRule);
 }  }
   
Line 1581  static char *ParseCSSBorderRight (Elemen Line 1620  static char *ParseCSSBorderRight (Elemen
                                   PresentationContext context, char *cssRule,                                    PresentationContext context, char *cssRule,
                                   CSSInfoPtr css, ThotBool isHTML)                                    CSSInfoPtr css, ThotBool isHTML)
 {  {
   char            *ptr;    PresentationValue   best;
   ThotBool        style, width;    char               *ptr;
     ThotBool            style, width, color;
   
   cssRule = SkipBlanksAndComments (cssRule);    cssRule = SkipBlanksAndComments (cssRule);
   /* register given values */    /* register given values */
   if (!strncmp (cssRule, "none", 4))    if (!strncmp (cssRule, "none", 4))
     style = width = TRUE;      style = width = color = TRUE;
   else    else
     style = width = FALSE;      style = width = color = FALSE;
   while (*cssRule != ';' && *cssRule != '}' && *cssRule != EOS && *cssRule != ',')    while (*cssRule != ';' && *cssRule != '}' && *cssRule != EOS && *cssRule != ',')
     {      {
       ptr = cssRule;        ptr = cssRule;
Line 1598  static char *ParseCSSBorderRight (Elemen Line 1638  static char *ParseCSSBorderRight (Elemen
         {          {
           cssRule = ParseCSSBorderRightWidth (element, tsch, context, cssRule, css, isHTML);            cssRule = ParseCSSBorderRightWidth (element, tsch, context, cssRule, css, isHTML);
           if (ptr == cssRule)            if (ptr == cssRule)
             cssRule = ParseCSSBorderColorRight (element, tsch, context, cssRule, css, isHTML);              {
                 cssRule = ParseCSSBorderColorRight (element, tsch, context, cssRule, css, isHTML);
                 if (ptr != cssRule)
                   color = TRUE;
               }
           else            else
             width = TRUE;              width = TRUE;
           if (ptr == cssRule)            if (ptr == cssRule)
Line 1617  static char *ParseCSSBorderRight (Elemen Line 1661  static char *ParseCSSBorderRight (Elemen
     ParseCSSBorderRightWidth (element, tsch, context, "medium", css, isHTML);      ParseCSSBorderRightWidth (element, tsch, context, "medium", css, isHTML);
   if (!style)    if (!style)
     ParseCSSBorderStyleRight (element, tsch, context, "none", css, isHTML);      ParseCSSBorderStyleRight (element, tsch, context, "none", css, isHTML);
     if (!color && DoApply)
       {
         /* get the box color */
         best.typed_data.value = -1;
         best.typed_data.unit = UNIT_REL;
         TtaSetStylePresentation (PRBorderRightColor, element, tsch, context, best);
       }
   return (cssRule);    return (cssRule);
 }  }
   
Line 2221  static char *SetCSSImage (Element elemen Line 2272  static char *SetCSSImage (Element elemen
     /* default element for FetchImage */      /* default element for FetchImage */
     el = TtaGetMainRoot (ctxt->doc);      el = TtaGetMainRoot (ctxt->doc);
   url = NULL;    url = NULL;
     image.typed_data.real = FALSE;
   cssRule = ParseCSSUrl (cssRule, &url);    cssRule = ParseCSSUrl (cssRule, &url);
   ptr = cssRule;    ptr = cssRule;
   if (ctxt->destroy)    if (ctxt->destroy)
Line 2692  static char *ParseCSSTextIndent (Element Line 2744  static char *ParseCSSTextIndent (Element
   PresentationValue   pval;    PresentationValue   pval;
   char               *ptr;    char               *ptr;
   
     pval.typed_data.real = FALSE;
   cssRule = SkipBlanksAndComments (cssRule);    cssRule = SkipBlanksAndComments (cssRule);
   ptr = cssRule;    ptr = cssRule;
   cssRule = ParseCSSUnit (cssRule, &pval);    cssRule = ParseCSSUnit (cssRule, &pval);
Line 2890  static char *ParseCSSLineHeight (Element Line 2943  static char *ParseCSSLineHeight (Element
   PresentationValue   pval;    PresentationValue   pval;
   char               *ptr;    char               *ptr;
   
     pval.typed_data.real = FALSE;
   cssRule = SkipBlanksAndComments (cssRule);    cssRule = SkipBlanksAndComments (cssRule);
   ptr = cssRule;    ptr = cssRule;
   if (!strncasecmp (cssRule, "normal", 6))    if (!strncasecmp (cssRule, "normal", 6))
Line 3780  static char *ParseCSSHeight (Element ele Line 3834  static char *ParseCSSHeight (Element ele
   PresentationValue   val;    PresentationValue   val;
   char               *ptr;    char               *ptr;
   
     val.typed_data.real = FALSE;
   cssRule = SkipBlanksAndComments (cssRule);    cssRule = SkipBlanksAndComments (cssRule);
   ptr = cssRule;    ptr = cssRule;
   /* first parse the attribute string */    /* first parse the attribute string */
Line 3787  static char *ParseCSSHeight (Element ele Line 3842  static char *ParseCSSHeight (Element ele
     {      {
       val.typed_data.unit = VALUE_AUTO;        val.typed_data.unit = VALUE_AUTO;
       val.typed_data.value = 0;        val.typed_data.value = 0;
       val.typed_data.real = FALSE;  
       cssRule += 4;        cssRule += 4;
       cssRule = CSSCheckEndValue (ptr, cssRule, "Invalid height value");        cssRule = CSSCheckEndValue (ptr, cssRule, "Invalid height value");
     }      }
Line 3821  static char *ParseCSSWidth (Element elem Line 3875  static char *ParseCSSWidth (Element elem
   PresentationValue   val;    PresentationValue   val;
   char               *ptr;    char               *ptr;
   
     val.typed_data.real = FALSE;
   cssRule = SkipBlanksAndComments (cssRule);    cssRule = SkipBlanksAndComments (cssRule);
   ptr = cssRule;    ptr = cssRule;
   /* first parse the attribute string */    /* first parse the attribute string */
Line 3828  static char *ParseCSSWidth (Element elem Line 3883  static char *ParseCSSWidth (Element elem
     {      {
       val.typed_data.unit = VALUE_AUTO;        val.typed_data.unit = VALUE_AUTO;
       val.typed_data.value = 0;        val.typed_data.value = 0;
       val.typed_data.real = FALSE;  
       cssRule += 4;        cssRule += 4;
       cssRule = CSSCheckEndValue (ptr, cssRule, "Invalid width value");        cssRule = CSSCheckEndValue (ptr, cssRule, "Invalid width value");
     }      }
Line 3861  static char *ParseACSSMarginTop (Element Line 3915  static char *ParseACSSMarginTop (Element
   PresentationValue   margin;    PresentationValue   margin;
   char               *ptr;    char               *ptr;
       
     margin.typed_data.real = FALSE;
   cssRule = SkipBlanksAndComments (cssRule);    cssRule = SkipBlanksAndComments (cssRule);
   ptr = cssRule;    ptr = cssRule;
   /* first parse the attribute string */    /* first parse the attribute string */
Line 3868  static char *ParseACSSMarginTop (Element Line 3923  static char *ParseACSSMarginTop (Element
     {      {
       margin.typed_data.unit = VALUE_AUTO;        margin.typed_data.unit = VALUE_AUTO;
       margin.typed_data.value = 0;        margin.typed_data.value = 0;
       margin.typed_data.real = FALSE;  
       cssRule += 4;        cssRule += 4;
     }      }
   else    else
Line 3916  static char *ParseACSSMarginBottom (Elem Line 3970  static char *ParseACSSMarginBottom (Elem
   PresentationValue   margin;    PresentationValue   margin;
   char               *ptr;    char               *ptr;
       
     margin.typed_data.real = FALSE;
   cssRule = SkipBlanksAndComments (cssRule);    cssRule = SkipBlanksAndComments (cssRule);
   ptr = cssRule;    ptr = cssRule;
   /* first parse the attribute string */    /* first parse the attribute string */
Line 3923  static char *ParseACSSMarginBottom (Elem Line 3978  static char *ParseACSSMarginBottom (Elem
     {      {
       margin.typed_data.unit = VALUE_AUTO;        margin.typed_data.unit = VALUE_AUTO;
       margin.typed_data.value = 0;        margin.typed_data.value = 0;
       margin.typed_data.real = FALSE;  
       cssRule += 4;        cssRule += 4;
     }      }
   else    else
Line 3966  static char *ParseACSSMarginLeft (Elemen Line 4020  static char *ParseACSSMarginLeft (Elemen
   PresentationValue   margin;    PresentationValue   margin;
   char               *ptr;    char               *ptr;
       
     margin.typed_data.real = FALSE;
   cssRule = SkipBlanksAndComments (cssRule);    cssRule = SkipBlanksAndComments (cssRule);
   ptr = cssRule;    ptr = cssRule;
   /* first parse the attribute string */    /* first parse the attribute string */
Line 3973  static char *ParseACSSMarginLeft (Elemen Line 4028  static char *ParseACSSMarginLeft (Elemen
     {      {
       margin.typed_data.unit = VALUE_AUTO;        margin.typed_data.unit = VALUE_AUTO;
       margin.typed_data.value = 0;        margin.typed_data.value = 0;
       margin.typed_data.real = FALSE;  
       cssRule += 4;        cssRule += 4;
     }      }
   else    else
Line 4017  static char *ParseACSSMarginRight (Eleme Line 4071  static char *ParseACSSMarginRight (Eleme
   PresentationValue   margin;    PresentationValue   margin;
   char               *ptr;    char               *ptr;
       
     margin.typed_data.real = FALSE;
   cssRule = SkipBlanksAndComments (cssRule);    cssRule = SkipBlanksAndComments (cssRule);
   ptr = cssRule;    ptr = cssRule;
   /* first parse the attribute string */    /* first parse the attribute string */
Line 4024  static char *ParseACSSMarginRight (Eleme Line 4079  static char *ParseACSSMarginRight (Eleme
     {      {
       margin.typed_data.unit = VALUE_AUTO;        margin.typed_data.unit = VALUE_AUTO;
       margin.typed_data.value = 0;        margin.typed_data.value = 0;
       margin.typed_data.real = FALSE;  
       cssRule += 4;        cssRule += 4;
     }      }
   else    else
Line 4139  static char *ParseCSSPaddingTop (Element Line 4193  static char *ParseCSSPaddingTop (Element
 {  {
   PresentationValue   padding;    PresentationValue   padding;
   char               *ptr;    char               *ptr;
      
     padding.typed_data.real = FALSE;
   cssRule = SkipBlanksAndComments (cssRule);    cssRule = SkipBlanksAndComments (cssRule);
   ptr = cssRule;    ptr = cssRule;
   /* first parse the attribute string */    /* first parse the attribute string */
Line 4175  static char *ParseCSSPaddingBottom (Elem Line 4230  static char *ParseCSSPaddingBottom (Elem
   PresentationValue   padding;    PresentationValue   padding;
   char               *ptr;    char               *ptr;
       
     padding.typed_data.real = FALSE;
   cssRule = SkipBlanksAndComments (cssRule);    cssRule = SkipBlanksAndComments (cssRule);
   ptr = cssRule;    ptr = cssRule;
   /* first parse the attribute string */    /* first parse the attribute string */
Line 4207  static char *ParseCSSPaddingLeft (Elemen Line 4263  static char *ParseCSSPaddingLeft (Elemen
   PresentationValue   padding;    PresentationValue   padding;
   char               *ptr;    char               *ptr;
       
     padding.typed_data.real = FALSE;
   cssRule = SkipBlanksAndComments (cssRule);    cssRule = SkipBlanksAndComments (cssRule);
   ptr = cssRule;    ptr = cssRule;
   /* first parse the attribute string */    /* first parse the attribute string */
Line 4239  static char *ParseCSSPaddingRight (Eleme Line 4296  static char *ParseCSSPaddingRight (Eleme
   PresentationValue   padding;    PresentationValue   padding;
   char               *ptr;    char               *ptr;
       
     padding.typed_data.real = FALSE;
   cssRule = SkipBlanksAndComments (cssRule);    cssRule = SkipBlanksAndComments (cssRule);
   ptr = cssRule;    ptr = cssRule;
   /* first parse the attribute string */    /* first parse the attribute string */
Line 4344  static char *ParseCSSForeground (Element Line 4402  static char *ParseCSSForeground (Element
   PresentationValue   best;    PresentationValue   best;
   char               *p;    char               *p;
   
     best.typed_data.real = FALSE;
   cssRule = SkipBlanksAndComments (cssRule);    cssRule = SkipBlanksAndComments (cssRule);
   p = cssRule;    p = cssRule;
   cssRule = ParseCSSColor (cssRule, &best);    cssRule = ParseCSSColor (cssRule, &best);
Line 4374  static char *ParseCSSBackgroundColor (El Line 4433  static char *ParseCSSBackgroundColor (El
   PresentationValue     best;    PresentationValue     best;
   char                 *ptr;    char                 *ptr;
   
     best.typed_data.real = FALSE;
   cssRule = SkipBlanksAndComments (cssRule);    cssRule = SkipBlanksAndComments (cssRule);
   ptr = cssRule;    ptr = cssRule;
   best.typed_data.unit = UNIT_INVALID;    best.typed_data.unit = UNIT_INVALID;
Line 4823  static char *ParseCSSBackgroundImage (El Line 4883  static char *ParseCSSBackgroundImage (El
   PresentationValue          image, value;    PresentationValue          image, value;
   char                       *ptr;    char                       *ptr;
   
     image.typed_data.real = FALSE;
     value.typed_data.real = FALSE;
   cssRule = SkipBlanksAndComments (cssRule);    cssRule = SkipBlanksAndComments (cssRule);
   ptr = cssRule;    ptr = cssRule;
   if (!strncasecmp (cssRule, "none", 4))    if (!strncasecmp (cssRule, "none", 4))
Line 5455  static char *ParseCSSTop (Element elemen Line 5517  static char *ParseCSSTop (Element elemen
   PresentationValue   val;    PresentationValue   val;
   char               *ptr;    char               *ptr;
   
     val.typed_data.real = FALSE;
   cssRule = SkipBlanksAndComments (cssRule);    cssRule = SkipBlanksAndComments (cssRule);
   ptr = cssRule;    ptr = cssRule;
   /* first parse the value */    /* first parse the value */
Line 5462  static char *ParseCSSTop (Element elemen Line 5525  static char *ParseCSSTop (Element elemen
     {      {
       val.typed_data.unit = VALUE_AUTO;        val.typed_data.unit = VALUE_AUTO;
       val.typed_data.value = 0;        val.typed_data.value = 0;
       val.typed_data.real = FALSE;  
       cssRule = SkipWord (cssRule);        cssRule = SkipWord (cssRule);
     }      }
   else if (!strncasecmp (cssRule, "inherit", 7))    else if (!strncasecmp (cssRule, "inherit", 7))
Line 5496  static char *ParseCSSRight (Element elem Line 5558  static char *ParseCSSRight (Element elem
   PresentationValue   val;    PresentationValue   val;
   char               *ptr;    char               *ptr;
   
     val.typed_data.real = FALSE;
   cssRule = SkipBlanksAndComments (cssRule);    cssRule = SkipBlanksAndComments (cssRule);
   ptr = cssRule;    ptr = cssRule;
   /* first parse the attribute string */    /* first parse the attribute string */
Line 5503  static char *ParseCSSRight (Element elem Line 5566  static char *ParseCSSRight (Element elem
     {      {
       val.typed_data.unit = VALUE_AUTO;        val.typed_data.unit = VALUE_AUTO;
       val.typed_data.value = 0;        val.typed_data.value = 0;
       val.typed_data.real = FALSE;  
       cssRule = SkipWord (cssRule);        cssRule = SkipWord (cssRule);
     }      }
   else if (!strncasecmp (cssRule, "inherit", 7))    else if (!strncasecmp (cssRule, "inherit", 7))
Line 5537  static char *ParseCSSBottom (Element ele Line 5599  static char *ParseCSSBottom (Element ele
   PresentationValue   val;    PresentationValue   val;
   char               *ptr;    char               *ptr;
   
     val.typed_data.real = FALSE;
   cssRule = SkipBlanksAndComments (cssRule);    cssRule = SkipBlanksAndComments (cssRule);
   ptr = cssRule;    ptr = cssRule;
   /* first parse the attribute string */    /* first parse the attribute string */
Line 5544  static char *ParseCSSBottom (Element ele Line 5607  static char *ParseCSSBottom (Element ele
     {      {
       val.typed_data.unit = VALUE_AUTO;        val.typed_data.unit = VALUE_AUTO;
       val.typed_data.value = 0;        val.typed_data.value = 0;
       val.typed_data.real = FALSE;  
       cssRule = SkipWord (cssRule);        cssRule = SkipWord (cssRule);
     }      }
   else if (!strncasecmp (cssRule, "inherit", 7))    else if (!strncasecmp (cssRule, "inherit", 7))
Line 5578  static char *ParseCSSLeft (Element eleme Line 5640  static char *ParseCSSLeft (Element eleme
   PresentationValue   val;    PresentationValue   val;
   char               *ptr;    char               *ptr;
   
     val.typed_data.real = FALSE;
   cssRule = SkipBlanksAndComments (cssRule);    cssRule = SkipBlanksAndComments (cssRule);
   ptr = cssRule;    ptr = cssRule;
   /* first parse the attribute string */    /* first parse the attribute string */
Line 5585  static char *ParseCSSLeft (Element eleme Line 5648  static char *ParseCSSLeft (Element eleme
     {      {
       val.typed_data.unit = VALUE_AUTO;        val.typed_data.unit = VALUE_AUTO;
       val.typed_data.value = 0;        val.typed_data.value = 0;
       val.typed_data.real = FALSE;  
       cssRule = SkipWord (cssRule);        cssRule = SkipWord (cssRule);
     }      }
   else if (!strncasecmp (cssRule, "inherit", 7))    else if (!strncasecmp (cssRule, "inherit", 7))
Line 5619  static char *ParseCSSZIndex (Element ele Line 5681  static char *ParseCSSZIndex (Element ele
   PresentationValue   val;    PresentationValue   val;
   char               *ptr;    char               *ptr;
   
     val.typed_data.real = FALSE;
   cssRule = SkipBlanksAndComments (cssRule);    cssRule = SkipBlanksAndComments (cssRule);
   ptr = cssRule;    ptr = cssRule;
   /* first parse the attribute string */    /* first parse the attribute string */
Line 5627  static char *ParseCSSZIndex (Element ele Line 5690  static char *ParseCSSZIndex (Element ele
     {      {
       val.typed_data.unit = VALUE_AUTO;        val.typed_data.unit = VALUE_AUTO;
       val.typed_data.value = 0;        val.typed_data.value = 0;
       val.typed_data.real = FALSE;  
       cssRule = SkipWord (cssRule);        cssRule = SkipWord (cssRule);
     }      }
   else    else

Removed from v.1.369  
changed lines
  Added in v.1.370


Webmaster