Diff for /Amaya/amaya/styleparser.c between versions 1.143 and 1.144

version 1.143, 2002/07/04 15:40:02 version 1.144, 2002/07/16 17:56:46
Line 4810  void ApplyCSSRules (Element el, char *cs Line 4810  void ApplyCSSRules (Element el, char *cs
 {  {
   CSSInfoPtr        css;    CSSInfoPtr        css;
   
   css = SearchCSS (doc, NULL);    css = SearchCSS (doc, NULL, el);
   if (css == NULL)    if (css == NULL)
     /* create the document css */      /* create the document css */
     css = AddCSS (doc, doc, CSS_DOCUMENT_STYLE, NULL, NULL);      css = AddCSS (doc, doc, CSS_DOCUMENT_STYLE, NULL, NULL, el);
   ParseStyleDeclaration (el, cssRule, doc, css, destroy);     ParseStyleDeclaration (el, cssRule, doc, css, destroy); 
 }  }
   
Line 4840  void ApplyCSSRules (Element el, char *cs Line 4840  void ApplyCSSRules (Element el, char *cs
    structure and content have to be registered in the Undo queue or not     structure and content have to be registered in the Undo queue or not
   ----------------------------------------------------------------------*/    ----------------------------------------------------------------------*/
 char ReadCSSRules (Document docRef, CSSInfoPtr css, char *buffer, char *url,  char ReadCSSRules (Document docRef, CSSInfoPtr css, char *buffer, char *url,
                    int numberOfLinesRead, ThotBool withUndo)                     int numberOfLinesRead, ThotBool withUndo,
                      Element styleElement)
 {  {
   DisplayMode         dispMode;    DisplayMode         dispMode;
   char                c;    char                c;
Line 4880  char ReadCSSRules (Document docRef, CSSI Line 4881  char ReadCSSRules (Document docRef, CSSI
   
   /* look for the CSS context */    /* look for the CSS context */
   if (css == NULL)    if (css == NULL)
     css = SearchCSS (docRef, NULL);      css = SearchCSS (docRef, NULL, styleElement);
   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);
   
   /* 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)
     DocURL = url;      DocURL = url;

Removed from v.1.143  
changed lines
  Added in v.1.144


Webmaster