mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-12-24 04:56:50 +03:00
All the intern strings we might need for CSS
svn path=/trunk/netsurf/; revision=13696
This commit is contained in:
parent
0344970df4
commit
9d1baa5ba9
174
css/css.c
174
css/css.c
@ -84,10 +84,60 @@ static lwc_string *css_charset;
|
||||
static css_stylesheet *blank_import;
|
||||
|
||||
dom_string *nscss_dom_string_a;
|
||||
dom_string *nscss_dom_string_href;
|
||||
dom_string *nscss_dom_string_background;
|
||||
dom_string *nscss_dom_string_abscenter;
|
||||
dom_string *nscss_dom_string_absmiddle;
|
||||
dom_string *nscss_dom_string_align;
|
||||
dom_string *nscss_dom_string_applet;
|
||||
dom_string *nscss_dom_string_background;
|
||||
dom_string *nscss_dom_string_bgcolor;
|
||||
dom_string *nscss_dom_string_body;
|
||||
dom_string *nscss_dom_string_bordercolor;
|
||||
dom_string *nscss_dom_string_bottom;
|
||||
dom_string *nscss_dom_string_caption;
|
||||
dom_string *nscss_dom_string_cellspacing;
|
||||
dom_string *nscss_dom_string_center;
|
||||
dom_string *nscss_dom_string_color;
|
||||
dom_string *nscss_dom_string_cols;
|
||||
dom_string *nscss_dom_string_div;
|
||||
dom_string *nscss_dom_string_embed;
|
||||
dom_string *nscss_dom_string_font;
|
||||
dom_string *nscss_dom_string_h1;
|
||||
dom_string *nscss_dom_string_h2;
|
||||
dom_string *nscss_dom_string_h3;
|
||||
dom_string *nscss_dom_string_h4;
|
||||
dom_string *nscss_dom_string_h5;
|
||||
dom_string *nscss_dom_string_h6;
|
||||
dom_string *nscss_dom_string_height;
|
||||
dom_string *nscss_dom_string_hr;
|
||||
dom_string *nscss_dom_string_href;
|
||||
dom_string *nscss_dom_string_hspace;
|
||||
dom_string *nscss_dom_string_iframe;
|
||||
dom_string *nscss_dom_string_img;
|
||||
dom_string *nscss_dom_string_input;
|
||||
dom_string *nscss_dom_string_justify;
|
||||
dom_string *nscss_dom_string_left;
|
||||
dom_string *nscss_dom_string_link;
|
||||
dom_string *nscss_dom_string_middle;
|
||||
dom_string *nscss_dom_string_object;
|
||||
dom_string *nscss_dom_string_p;
|
||||
dom_string *nscss_dom_string_password;
|
||||
dom_string *nscss_dom_string_right;
|
||||
dom_string *nscss_dom_string_rows;
|
||||
dom_string *nscss_dom_string_size;
|
||||
dom_string *nscss_dom_string_table;
|
||||
dom_string *nscss_dom_string_tbody;
|
||||
dom_string *nscss_dom_string_td;
|
||||
dom_string *nscss_dom_string_text;
|
||||
dom_string *nscss_dom_string_textarea;
|
||||
dom_string *nscss_dom_string_tfoot;
|
||||
dom_string *nscss_dom_string_th;
|
||||
dom_string *nscss_dom_string_thead;
|
||||
dom_string *nscss_dom_string_tr;
|
||||
dom_string *nscss_dom_string_type;
|
||||
dom_string *nscss_dom_string_valign;
|
||||
dom_string *nscss_dom_string_vlink;
|
||||
dom_string *nscss_dom_string_vspace;
|
||||
dom_string *nscss_dom_string_width;
|
||||
|
||||
/**
|
||||
* Initialise a CSS content
|
||||
@ -782,11 +832,61 @@ static void nscss_fini(void)
|
||||
} \
|
||||
} while (0) \
|
||||
|
||||
CSS_DOM_STRING_UNREF(valign);
|
||||
CSS_DOM_STRING_UNREF(align);
|
||||
CSS_DOM_STRING_UNREF(background);
|
||||
CSS_DOM_STRING_UNREF(href);
|
||||
CSS_DOM_STRING_UNREF(a);
|
||||
CSS_DOM_STRING_UNREF(a);
|
||||
CSS_DOM_STRING_UNREF(abscenter);
|
||||
CSS_DOM_STRING_UNREF(absmiddle);
|
||||
CSS_DOM_STRING_UNREF(align);
|
||||
CSS_DOM_STRING_UNREF(applet);
|
||||
CSS_DOM_STRING_UNREF(background);
|
||||
CSS_DOM_STRING_UNREF(bgcolor);
|
||||
CSS_DOM_STRING_UNREF(body);
|
||||
CSS_DOM_STRING_UNREF(bordercolor);
|
||||
CSS_DOM_STRING_UNREF(bottom);
|
||||
CSS_DOM_STRING_UNREF(caption);
|
||||
CSS_DOM_STRING_UNREF(cellspacing);
|
||||
CSS_DOM_STRING_UNREF(center);
|
||||
CSS_DOM_STRING_UNREF(color);
|
||||
CSS_DOM_STRING_UNREF(cols);
|
||||
CSS_DOM_STRING_UNREF(div);
|
||||
CSS_DOM_STRING_UNREF(embed);
|
||||
CSS_DOM_STRING_UNREF(font);
|
||||
CSS_DOM_STRING_UNREF(h1);
|
||||
CSS_DOM_STRING_UNREF(h2);
|
||||
CSS_DOM_STRING_UNREF(h3);
|
||||
CSS_DOM_STRING_UNREF(h4);
|
||||
CSS_DOM_STRING_UNREF(h5);
|
||||
CSS_DOM_STRING_UNREF(h6);
|
||||
CSS_DOM_STRING_UNREF(height);
|
||||
CSS_DOM_STRING_UNREF(hr);
|
||||
CSS_DOM_STRING_UNREF(href);
|
||||
CSS_DOM_STRING_UNREF(hspace);
|
||||
CSS_DOM_STRING_UNREF(iframe);
|
||||
CSS_DOM_STRING_UNREF(img);
|
||||
CSS_DOM_STRING_UNREF(input);
|
||||
CSS_DOM_STRING_UNREF(justify);
|
||||
CSS_DOM_STRING_UNREF(left);
|
||||
CSS_DOM_STRING_UNREF(link);
|
||||
CSS_DOM_STRING_UNREF(middle);
|
||||
CSS_DOM_STRING_UNREF(object);
|
||||
CSS_DOM_STRING_UNREF(p);
|
||||
CSS_DOM_STRING_UNREF(password);
|
||||
CSS_DOM_STRING_UNREF(right);
|
||||
CSS_DOM_STRING_UNREF(rows);
|
||||
CSS_DOM_STRING_UNREF(size);
|
||||
CSS_DOM_STRING_UNREF(table);
|
||||
CSS_DOM_STRING_UNREF(tbody);
|
||||
CSS_DOM_STRING_UNREF(td);
|
||||
CSS_DOM_STRING_UNREF(text);
|
||||
CSS_DOM_STRING_UNREF(textarea);
|
||||
CSS_DOM_STRING_UNREF(tfoot);
|
||||
CSS_DOM_STRING_UNREF(th);
|
||||
CSS_DOM_STRING_UNREF(thead);
|
||||
CSS_DOM_STRING_UNREF(tr);
|
||||
CSS_DOM_STRING_UNREF(type);
|
||||
CSS_DOM_STRING_UNREF(valign);
|
||||
CSS_DOM_STRING_UNREF(vlink);
|
||||
CSS_DOM_STRING_UNREF(vspace);
|
||||
CSS_DOM_STRING_UNREF(width);
|
||||
|
||||
#undef CSS_DOM_STRING_UNREF
|
||||
|
||||
@ -837,11 +937,61 @@ nserror nscss_init(void)
|
||||
if ((exc != DOM_NO_ERR) || (nscss_dom_string_##NAME == NULL)) \
|
||||
goto error
|
||||
|
||||
CSS_DOM_STRING_INTERN(a);
|
||||
CSS_DOM_STRING_INTERN(href);
|
||||
CSS_DOM_STRING_INTERN(background);
|
||||
CSS_DOM_STRING_INTERN(align);
|
||||
CSS_DOM_STRING_INTERN(valign);
|
||||
CSS_DOM_STRING_INTERN(a);
|
||||
CSS_DOM_STRING_INTERN(abscenter);
|
||||
CSS_DOM_STRING_INTERN(absmiddle);
|
||||
CSS_DOM_STRING_INTERN(align);
|
||||
CSS_DOM_STRING_INTERN(applet);
|
||||
CSS_DOM_STRING_INTERN(background);
|
||||
CSS_DOM_STRING_INTERN(bgcolor);
|
||||
CSS_DOM_STRING_INTERN(body);
|
||||
CSS_DOM_STRING_INTERN(bordercolor);
|
||||
CSS_DOM_STRING_INTERN(bottom);
|
||||
CSS_DOM_STRING_INTERN(caption);
|
||||
CSS_DOM_STRING_INTERN(cellspacing);
|
||||
CSS_DOM_STRING_INTERN(center);
|
||||
CSS_DOM_STRING_INTERN(color);
|
||||
CSS_DOM_STRING_INTERN(cols);
|
||||
CSS_DOM_STRING_INTERN(div);
|
||||
CSS_DOM_STRING_INTERN(embed);
|
||||
CSS_DOM_STRING_INTERN(font);
|
||||
CSS_DOM_STRING_INTERN(h1);
|
||||
CSS_DOM_STRING_INTERN(h2);
|
||||
CSS_DOM_STRING_INTERN(h3);
|
||||
CSS_DOM_STRING_INTERN(h4);
|
||||
CSS_DOM_STRING_INTERN(h5);
|
||||
CSS_DOM_STRING_INTERN(h6);
|
||||
CSS_DOM_STRING_INTERN(height);
|
||||
CSS_DOM_STRING_INTERN(hr);
|
||||
CSS_DOM_STRING_INTERN(href);
|
||||
CSS_DOM_STRING_INTERN(hspace);
|
||||
CSS_DOM_STRING_INTERN(iframe);
|
||||
CSS_DOM_STRING_INTERN(img);
|
||||
CSS_DOM_STRING_INTERN(input);
|
||||
CSS_DOM_STRING_INTERN(justify);
|
||||
CSS_DOM_STRING_INTERN(left);
|
||||
CSS_DOM_STRING_INTERN(link);
|
||||
CSS_DOM_STRING_INTERN(middle);
|
||||
CSS_DOM_STRING_INTERN(object);
|
||||
CSS_DOM_STRING_INTERN(p);
|
||||
CSS_DOM_STRING_INTERN(password);
|
||||
CSS_DOM_STRING_INTERN(right);
|
||||
CSS_DOM_STRING_INTERN(rows);
|
||||
CSS_DOM_STRING_INTERN(size);
|
||||
CSS_DOM_STRING_INTERN(table);
|
||||
CSS_DOM_STRING_INTERN(tbody);
|
||||
CSS_DOM_STRING_INTERN(td);
|
||||
CSS_DOM_STRING_INTERN(text);
|
||||
CSS_DOM_STRING_INTERN(textarea);
|
||||
CSS_DOM_STRING_INTERN(tfoot);
|
||||
CSS_DOM_STRING_INTERN(th);
|
||||
CSS_DOM_STRING_INTERN(thead);
|
||||
CSS_DOM_STRING_INTERN(tr);
|
||||
CSS_DOM_STRING_INTERN(type);
|
||||
CSS_DOM_STRING_INTERN(valign);
|
||||
CSS_DOM_STRING_INTERN(vlink);
|
||||
CSS_DOM_STRING_INTERN(vspace);
|
||||
CSS_DOM_STRING_INTERN(width);
|
||||
|
||||
#undef CSS_DOM_STRING_INTERN
|
||||
|
||||
|
@ -25,9 +25,59 @@ css_error nscss_resolve_url(void *pw, const char *base,
|
||||
lwc_string *rel, lwc_string **abs);
|
||||
|
||||
extern struct dom_string *nscss_dom_string_a;
|
||||
extern struct dom_string *nscss_dom_string_href;
|
||||
extern struct dom_string *nscss_dom_string_background;
|
||||
extern struct dom_string *nscss_dom_string_abscenter;
|
||||
extern struct dom_string *nscss_dom_string_absmiddle;
|
||||
extern struct dom_string *nscss_dom_string_align;
|
||||
extern struct dom_string *nscss_dom_string_applet;
|
||||
extern struct dom_string *nscss_dom_string_background;
|
||||
extern struct dom_string *nscss_dom_string_bgcolor;
|
||||
extern struct dom_string *nscss_dom_string_body;
|
||||
extern struct dom_string *nscss_dom_string_bordercolor;
|
||||
extern struct dom_string *nscss_dom_string_bottom;
|
||||
extern struct dom_string *nscss_dom_string_caption;
|
||||
extern struct dom_string *nscss_dom_string_cellspacing;
|
||||
extern struct dom_string *nscss_dom_string_center;
|
||||
extern struct dom_string *nscss_dom_string_color;
|
||||
extern struct dom_string *nscss_dom_string_cols;
|
||||
extern struct dom_string *nscss_dom_string_div;
|
||||
extern struct dom_string *nscss_dom_string_embed;
|
||||
extern struct dom_string *nscss_dom_string_font;
|
||||
extern struct dom_string *nscss_dom_string_h1;
|
||||
extern struct dom_string *nscss_dom_string_h2;
|
||||
extern struct dom_string *nscss_dom_string_h3;
|
||||
extern struct dom_string *nscss_dom_string_h4;
|
||||
extern struct dom_string *nscss_dom_string_h5;
|
||||
extern struct dom_string *nscss_dom_string_h6;
|
||||
extern struct dom_string *nscss_dom_string_height;
|
||||
extern struct dom_string *nscss_dom_string_hr;
|
||||
extern struct dom_string *nscss_dom_string_href;
|
||||
extern struct dom_string *nscss_dom_string_hspace;
|
||||
extern struct dom_string *nscss_dom_string_iframe;
|
||||
extern struct dom_string *nscss_dom_string_img;
|
||||
extern struct dom_string *nscss_dom_string_input;
|
||||
extern struct dom_string *nscss_dom_string_justify;
|
||||
extern struct dom_string *nscss_dom_string_left;
|
||||
extern struct dom_string *nscss_dom_string_link;
|
||||
extern struct dom_string *nscss_dom_string_middle;
|
||||
extern struct dom_string *nscss_dom_string_object;
|
||||
extern struct dom_string *nscss_dom_string_p;
|
||||
extern struct dom_string *nscss_dom_string_password;
|
||||
extern struct dom_string *nscss_dom_string_right;
|
||||
extern struct dom_string *nscss_dom_string_rows;
|
||||
extern struct dom_string *nscss_dom_string_size;
|
||||
extern struct dom_string *nscss_dom_string_table;
|
||||
extern struct dom_string *nscss_dom_string_tbody;
|
||||
extern struct dom_string *nscss_dom_string_td;
|
||||
extern struct dom_string *nscss_dom_string_text;
|
||||
extern struct dom_string *nscss_dom_string_textarea;
|
||||
extern struct dom_string *nscss_dom_string_tfoot;
|
||||
extern struct dom_string *nscss_dom_string_th;
|
||||
extern struct dom_string *nscss_dom_string_thead;
|
||||
extern struct dom_string *nscss_dom_string_tr;
|
||||
extern struct dom_string *nscss_dom_string_type;
|
||||
extern struct dom_string *nscss_dom_string_valign;
|
||||
extern struct dom_string *nscss_dom_string_vlink;
|
||||
extern struct dom_string *nscss_dom_string_vspace;
|
||||
extern struct dom_string *nscss_dom_string_width;
|
||||
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user