Diff for /Amaya/amaya/styleparser.c between versions 1.104 and 1.105

version 1.104, 2001/10/03 16:26:30 version 1.105, 2001/10/05 17:02:32
Line 3422  static char *ParseGenericSelector (char Line 3422  static char *ParseGenericSelector (char
 {  {
   ElementType        elType;    ElementType        elType;
   PSchema            tsch;    PSchema            tsch;
   /*AttributeType      attrType;*/    /*AttributeType    attrType;*/
   char               sel[MAX_ANCESTORS * 50];    char               sel[MAX_ANCESTORS * 50];
   char              *deb, *cur;    char              *deb, *cur;
   char              *structName;    char              *structName;
Line 3726  static char *ParseGenericSelector (char Line 3726  static char *ParseGenericSelector (char
     }      }
   
   /* Get the schema name of the main element */    /* Get the schema name of the main element */
   if (ctxt->schema == NULL)    if (ctxt->schema != NULL)
     ctxt->schema = TtaGetDocumentSSchema (doc);      {
   isHTML = (strcmp (TtaGetSSchemaName (ctxt->schema), "HTML") == 0);        isHTML = (strcmp (TtaGetSSchemaName (ctxt->schema), "HTML") == 0);
   tsch = GetPExtension (doc, ctxt->schema, css);        tsch = GetPExtension (doc, ctxt->schema, css);
   structName = TtaGetSSchemaName (ctxt->schema);        structName = TtaGetSSchemaName (ctxt->schema);
   if (tsch && cssRule)        if (tsch && cssRule)
     ParseCSSRule (NULL, tsch, (PresentationContext) ctxt, cssRule, css, isHTML);          ParseCSSRule (NULL, tsch, (PresentationContext) ctxt, cssRule, css, isHTML);
       }
   return (selector);    return (selector);
 }  }
   

Removed from v.1.104  
changed lines
  Added in v.1.105


Webmaster