Diff for /Amaya/amaya/styleparser.c between versions 1.425 and 1.426

version 1.425, 2009/04/16 09:40:26 version 1.426, 2009/04/23 09:51:17
Line 4812  static char *ParseSVGFill (Element eleme Line 4812  static char *ParseSVGFill (Element eleme
   PresentationValue     best;    PresentationValue     best;
   char                  *url;    char                  *url;
   
     url = NULL;
   best.typed_data.unit = UNIT_INVALID;    best.typed_data.unit = UNIT_INVALID;
   best.typed_data.real = FALSE;    best.typed_data.real = FALSE;
   if (!strncasecmp (cssRule, "none", 4))    if (!strncasecmp (cssRule, "none", 4))
Line 4837  static char *ParseSVGFill (Element eleme Line 4838  static char *ParseSVGFill (Element eleme
     {        {  
       cssRule += 3;        cssRule += 3;
       cssRule = ParseCSSUrl (cssRule, &url);        cssRule = ParseCSSUrl (cssRule, &url);
       SVGhandleFillUrl (element, context->doc, url);        best.typed_data.unit = VALUE_URL;
       TtaFreeMemory (url);        best.pointer = url;
       if (DoApply)        /* @@@@ caution: another color value may follow the uri (in case
         {           the uri could not be dereferenced) @@@@ */
           best.typed_data.value = PATTERN_BACKGROUND;  
           best.typed_data.unit = UNIT_REL;  
           TtaSetStylePresentation (PRFillPattern, element, tsch, context, best);  
           /* **** caution: another color value may follow the uri (in case  
              the uri could ne be dereferenced) *** */  
         }  
       return (cssRule);  
     }      }
   else    else
     cssRule = ParseCSSColor (cssRule, &best);      cssRule = ParseCSSColor (cssRule, &best);
Line 4856  static char *ParseSVGFill (Element eleme Line 4850  static char *ParseSVGFill (Element eleme
     {      {
       /* install the new presentation. */        /* install the new presentation. */
       TtaSetStylePresentation (PRBackground, element, tsch, context, best);        TtaSetStylePresentation (PRBackground, element, tsch, context, best);
         if (url)
           TtaFreeMemory (url);
       /* thot specificity: need to set fill pattern for background color */        /* thot specificity: need to set fill pattern for background color */
       best.typed_data.value = PATTERN_BACKGROUND;        best.typed_data.value = PATTERN_BACKGROUND;
       best.typed_data.unit = UNIT_REL;        best.typed_data.unit = UNIT_REL;

Removed from v.1.425  
changed lines
  Added in v.1.426


Webmaster