Diff for /Amaya/amaya/styleparser.c between versions 1.196 and 1.197

version 1.196, 2003/04/03 07:59:44 version 1.197, 2003/04/10 15:00:45
Line 4382  void  ParseHTMLSpecificStyle (Element el Line 4382  void  ParseHTMLSpecificStyle (Element el
    separated selector items, it parses them one at a time and       separated selector items, it parses them one at a time and  
    return the end of the selector string to be handled or NULL      return the end of the selector string to be handled or NULL 
   ----------------------------------------------------------------------*/    ----------------------------------------------------------------------*/
 static char *ParseGenericSelector (char *selector, char *cssRule,  static char *ParseGenericSelector (char *selector, char *cssRule, char *sel,
                                    GenericContext ctxt, Document doc,                                     GenericContext ctxt, Document doc,
                                    CSSInfoPtr css)                                     CSSInfoPtr css)
 {  {
   ElementType        elType;    ElementType        elType;
   PSchema            tsch;    PSchema            tsch;
   AttributeType      attrType;    AttributeType      attrType;
   char               sel[MAX_ANCESTORS * 50];  
   char              *deb, *cur, c;    char              *deb, *cur, c;
   char              *schemaName, *mappedName;    char              *schemaName, *mappedName;
   char              *names[MAX_ANCESTORS];    char              *names[MAX_ANCESTORS];
Line 5024  static void  ParseStyleDeclaration (Elem Line 5023  static void  ParseStyleDeclaration (Elem
                                     CSSInfoPtr css, ThotBool destroy)                                      CSSInfoPtr css, ThotBool destroy)
 {  {
   GenericContext      ctxt;    GenericContext      ctxt;
     char                sel[MAX_ANCESTORS * 50];
   char               *decl_end;    char               *decl_end;
   char               *sel_end;    char               *sel_end;
   char               *selector;    char               *selector;
Line 5062  static void  ParseStyleDeclaration (Elem Line 5062  static void  ParseStyleDeclaration (Elem
     return;      return;
   ctxt->destroy = destroy;    ctxt->destroy = destroy;
   
   while ((selector != NULL) && (*selector != EOS))    while (selector && *selector != EOS)
     selector = ParseGenericSelector (selector, cssRule, ctxt, doc, css);      selector = ParseGenericSelector (selector, cssRule, sel, ctxt, doc, css);
   TtaFreeMemory (ctxt);    TtaFreeMemory (ctxt);
 }  }
   
Line 5320  char ReadCSSRules (Document docRef, CSSI Line 5320  char ReadCSSRules (Document docRef, CSSI
   if (css == NULL)    if (css == NULL)
     css = AddCSS (docRef, docRef, CSS_DOCUMENT_STYLE, NULL, NULL,      css = AddCSS (docRef, docRef, CSS_DOCUMENT_STYLE, NULL, NULL,
                   styleElement);                    styleElement);
   
   /* look for the CSS descriptor that points to the extension schema */    /* look for the CSS descriptor that points to the extension schema */
   refcss = css;    refcss = css;
   if (import)    if (import)

Removed from v.1.196  
changed lines
  Added in v.1.197


Webmaster