Diff for /Amaya/amaya/styleparser.c between versions 1.170 and 1.171

version 1.170, 2003/01/13 09:50:43 version 1.171, 2003/01/13 16:13:38
Line 1666  static char *ParseCSSFontSize (Element e Line 1666  static char *ParseCSSFontSize (Element e
                                PresentationContext context, char *cssRule,                                 PresentationContext context, char *cssRule,
                                CSSInfoPtr css, ThotBool isHTML)                                 CSSInfoPtr css, ThotBool isHTML)
 {  {
      ElementType         elType;
    PresentationValue   pval;     PresentationValue   pval;
    char               *ptr = NULL, *ptr1 = NULL;     char               *ptr = NULL, *ptr1 = NULL;
    ThotBool            real;     ThotBool            real;
Line 1726  static char *ParseCSSFontSize (Element e Line 1727  static char *ParseCSSFontSize (Element e
         pval.typed_data.value = 7;          pval.typed_data.value = 7;
         cssRule = SkipWord (cssRule);          cssRule = SkipWord (cssRule);
      }       }
      else if (!isdigit (*cssRule) && *cssRule != '.')
        return (cssRule);
    else     else
      {       {
        /* look for a '/' within the current cssRule */         /* look for a '/' within the current cssRule */
Line 1739  static char *ParseCSSFontSize (Element e Line 1742  static char *ParseCSSFontSize (Element e
          }           }
        else         else
          ptr = NULL;           ptr = NULL;
          
        cssRule = ParseCSSUnit (cssRule, &pval);         cssRule = ParseCSSUnit (cssRule, &pval);
   
          if (pval.typed_data.unit == STYLE_UNIT_BOX)
            /* no unit specified */
            {
              elType = TtaGetElementType(element);
              if (!strcmp(TtaGetSSchemaName (elType.ElSSchema), "SVG"))
                /* we are working for an SVG element. No unit means pixels */
                pval.typed_data.unit = STYLE_UNIT_PX;
            }
        if (pval.typed_data.value != 0 &&         if (pval.typed_data.value != 0 &&
            (pval.typed_data.unit == STYLE_UNIT_INVALID ||             (pval.typed_data.unit == STYLE_UNIT_INVALID ||
             pval.typed_data.unit == STYLE_UNIT_BOX ||              pval.typed_data.unit == STYLE_UNIT_BOX ||

Removed from v.1.170  
changed lines
  Added in v.1.171


Webmaster