Diff for /Amaya/amaya/styleparser.c between versions 1.375 and 1.376

version 1.375, 2007/03/08 15:24:39 version 1.376, 2007/03/19 16:04:40
Line 5881  void  ParseCSSRule (Element element, PSc Line 5881  void  ParseCSSRule (Element element, PSc
               cssRule = end;                cssRule = end;
             }              }
           else if (i == NB_CSSSTYLEATTRIBUTE)            else if (i == NB_CSSSTYLEATTRIBUTE)
             cssRule = SkipProperty (cssRule, TRUE);              cssRule = SkipProperty (cssRule, !ctxt->destroy);
           else            else
             {              {
               /* update index and skip the ":" indicator if present */                /* update index and skip the ":" indicator if present */
Line 7332  void ApplyCSSRules (Element el, char *cs Line 7332  void ApplyCSSRules (Element el, char *cs
   TtaGetEnvBoolean ("LOAD_CSS", &loadcss);    TtaGetEnvBoolean ("LOAD_CSS", &loadcss);
   if (!loadcss)    if (!loadcss)
     return;      return;
     LineNumber = TtaGetElementLineNumber (el);
   css = SearchCSS (doc, NULL, el, &pInfo);    css = SearchCSS (doc, NULL, el, &pInfo);
   if (css == NULL)    if (css == NULL)
     {      {
Line 7344  void ApplyCSSRules (Element el, char *cs Line 7344  void ApplyCSSRules (Element el, char *cs
     /* create the entry into the css context */      /* create the entry into the css context */
     pInfo = AddInfoCSS (doc, css, CSS_DOCUMENT_STYLE, CSS_ALL, el);      pInfo = AddInfoCSS (doc, css, CSS_DOCUMENT_STYLE, CSS_ALL, el);
   if (pInfo->PiEnabled)    if (pInfo->PiEnabled)
     ParseStyleDeclaration (el, cssRule, doc, css, el, NULL, destroy);       ParseStyleDeclaration (el, cssRule, doc, css, el, NULL, destroy);
     LineNumber = -1;
 }  }
   
 /*----------------------------------------------------------------------  /*----------------------------------------------------------------------

Removed from v.1.375  
changed lines
  Added in v.1.376


Webmaster