Diff for /Amaya/amaya/styleparser.c between versions 1.172 and 1.173

version 1.172, 2003/01/28 08:30:09 version 1.173, 2003/01/29 15:51:01
Line 5116  char ReadCSSRules (Document docRef, CSSI Line 5116  char ReadCSSRules (Document docRef, CSSI
   ThotBool            toParse, eof, quoted;    ThotBool            toParse, eof, quoted;
   ThotBool            ignoreMedia, media;    ThotBool            ignoreMedia, media;
   ThotBool            noRule, ignoreImport;    ThotBool            noRule, ignoreImport;
     CSSInfoPtr          refcss = NULL, tmpcss;
   
   CSScomment = MAX_CSS_LENGTH;    CSScomment = MAX_CSS_LENGTH;
   HTMLcomment = FALSE;    HTMLcomment = FALSE;
Line 5146  char ReadCSSRules (Document docRef, CSSI Line 5147  char ReadCSSRules (Document docRef, CSSI
     css = AddCSS (docRef, docRef, CSS_DOCUMENT_STYLE, NULL, NULL,      css = AddCSS (docRef, docRef, CSS_DOCUMENT_STYLE, NULL, NULL,
                   styleElement);                    styleElement);
   
     /* Lookk for the first external css as reference */
     if (css->category == CSS_EXTERNAL_STYLE)
       refcss = css;
     else
       {
         tmpcss = css;
         while (tmpcss != NULL)
           {
             if (tmpcss->category == CSS_EXTERNAL_STYLE)
               {
                 refcss = tmpcss;
                 tmpcss = NULL;
               }
             else
               tmpcss = tmpcss->NextCSS;
           }
         if (refcss == NULL)
           refcss = css;
       }
   
   /* register parsed CSS file and the document to which CSS are to be applied*/    /* register parsed CSS file and the document to which CSS are to be applied*/
   ParsedDoc = docRef;    ParsedDoc = docRef;
   if (url)    if (url)
Line 5319  char ReadCSSRules (Document docRef, CSSI Line 5340  char ReadCSSRules (Document docRef, CSSI
                 {                  {
                   /* future import rules must be ignored */                    /* future import rules must be ignored */
                   ignoreImport = TRUE;                    ignoreImport = TRUE;
                   ParseStyleDeclaration (NULL, CSSbuffer, docRef, css, FALSE);                    ParseStyleDeclaration (NULL, CSSbuffer, docRef, refcss, FALSE);
                   LineNumber += newlines;                    LineNumber += newlines;
                   newlines = 0;                    newlines = 0;
                   NewLineSkipped = 0;                    NewLineSkipped = 0;

Removed from v.1.172  
changed lines
  Added in v.1.173


Webmaster