Diff for /Amaya/amaya/styleparser.c between versions 1.145 and 1.146

version 1.145, 2002/07/22 07:51:00 version 1.146, 2002/08/26 15:40:56
Line 1658  static char *ParseCSSFontSize (Element e Line 1658  static char *ParseCSSFontSize (Element e
                  pval.typed_data.value *= 100;                   pval.typed_data.value *= 100;
                pval.typed_data.unit = STYLE_UNIT_PERCENT;                 pval.typed_data.unit = STYLE_UNIT_PERCENT;
              }               }
              else if (pval.typed_data.unit == STYLE_UNIT_XHEIGHT)
                {
                  /* a font size expressed in ex is converted into a percentage.
                     For example, "3ex" is converted into "180%", supposing
                     that 1ex is approximately 0.6 times the height of the
                     current font */
                  if (real)
                    {
                      pval.typed_data.value *= 6;
                      pval.typed_data.value /= 100;
                      pval.typed_data.real = FALSE;
                      real = FALSE;
                    }
                  else
                    pval.typed_data.value *= 60;
                  pval.typed_data.unit = STYLE_UNIT_PERCENT;
                }
          }           }
   
      }       }

Removed from v.1.145  
changed lines
  Added in v.1.146


Webmaster