2012-07-22 18:48:55 +04:00
|
|
|
/*
|
|
|
|
* Copyright 2012 Michael Drake <tlsa@netsurf-browser.org>
|
|
|
|
*
|
|
|
|
* This file is part of NetSurf, http://www.netsurf-browser.org/
|
|
|
|
*
|
|
|
|
* NetSurf is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation; version 2 of the License.
|
|
|
|
*
|
|
|
|
* NetSurf is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
*/
|
|
|
|
|
|
|
|
/** \file
|
|
|
|
* Useful interned string pointers (implementation).
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <dom/dom.h>
|
|
|
|
|
|
|
|
#include "utils/corestrings.h"
|
2012-07-22 23:52:34 +04:00
|
|
|
#include "utils/utils.h"
|
2012-07-22 18:48:55 +04:00
|
|
|
|
|
|
|
/* lwc_string strings */
|
|
|
|
lwc_string *corestring_lwc_a;
|
2014-01-25 00:08:41 +04:00
|
|
|
lwc_string *corestring_lwc_about;
|
2012-07-22 18:48:55 +04:00
|
|
|
lwc_string *corestring_lwc_abscenter;
|
|
|
|
lwc_string *corestring_lwc_absmiddle;
|
|
|
|
lwc_string *corestring_lwc_align;
|
|
|
|
lwc_string *corestring_lwc_applet;
|
2012-07-23 02:28:45 +04:00
|
|
|
lwc_string *corestring_lwc_base;
|
2012-07-22 18:48:55 +04:00
|
|
|
lwc_string *corestring_lwc_baseline;
|
|
|
|
lwc_string *corestring_lwc_body;
|
|
|
|
lwc_string *corestring_lwc_bottom;
|
2012-07-22 21:01:10 +04:00
|
|
|
lwc_string *corestring_lwc_button;
|
2012-07-22 18:48:55 +04:00
|
|
|
lwc_string *corestring_lwc_caption;
|
|
|
|
lwc_string *corestring_lwc_center;
|
2013-02-24 17:15:05 +04:00
|
|
|
lwc_string *corestring_lwc_charset;
|
2012-07-23 15:06:43 +04:00
|
|
|
lwc_string *corestring_lwc_checkbox;
|
2012-07-22 23:52:34 +04:00
|
|
|
lwc_string *corestring_lwc_circle;
|
2012-07-22 18:48:55 +04:00
|
|
|
lwc_string *corestring_lwc_col;
|
2014-01-25 00:08:41 +04:00
|
|
|
lwc_string *corestring_lwc_data;
|
2012-07-22 23:52:34 +04:00
|
|
|
lwc_string *corestring_lwc_default;
|
2012-07-22 18:48:55 +04:00
|
|
|
lwc_string *corestring_lwc_div;
|
|
|
|
lwc_string *corestring_lwc_embed;
|
2012-07-23 15:06:43 +04:00
|
|
|
lwc_string *corestring_lwc_file;
|
2014-01-25 13:53:54 +04:00
|
|
|
lwc_string *corestring_lwc_filename;
|
2012-07-22 18:48:55 +04:00
|
|
|
lwc_string *corestring_lwc_font;
|
2012-07-26 18:57:33 +04:00
|
|
|
lwc_string *corestring_lwc_frame;
|
|
|
|
lwc_string *corestring_lwc_frameset;
|
2012-07-22 18:48:55 +04:00
|
|
|
lwc_string *corestring_lwc_h1;
|
|
|
|
lwc_string *corestring_lwc_h2;
|
|
|
|
lwc_string *corestring_lwc_h3;
|
|
|
|
lwc_string *corestring_lwc_h4;
|
|
|
|
lwc_string *corestring_lwc_h5;
|
|
|
|
lwc_string *corestring_lwc_h6;
|
2012-07-23 02:28:45 +04:00
|
|
|
lwc_string *corestring_lwc_head;
|
2012-07-23 15:06:43 +04:00
|
|
|
lwc_string *corestring_lwc_hidden;
|
2012-07-22 18:48:55 +04:00
|
|
|
lwc_string *corestring_lwc_hr;
|
2012-07-23 02:28:45 +04:00
|
|
|
lwc_string *corestring_lwc_html;
|
2014-01-24 23:25:07 +04:00
|
|
|
lwc_string *corestring_lwc_http;
|
2012-10-08 22:26:35 +04:00
|
|
|
lwc_string *corestring_lwc_https;
|
2014-01-25 03:13:18 +04:00
|
|
|
lwc_string *corestring_lwc_icon;
|
2012-07-22 18:48:55 +04:00
|
|
|
lwc_string *corestring_lwc_iframe;
|
2012-07-23 15:06:43 +04:00
|
|
|
lwc_string *corestring_lwc_image;
|
2012-07-22 18:48:55 +04:00
|
|
|
lwc_string *corestring_lwc_img;
|
|
|
|
lwc_string *corestring_lwc_input;
|
|
|
|
lwc_string *corestring_lwc_justify;
|
|
|
|
lwc_string *corestring_lwc_left;
|
2012-10-12 19:21:29 +04:00
|
|
|
lwc_string *corestring_lwc_li;
|
2012-07-23 02:28:45 +04:00
|
|
|
lwc_string *corestring_lwc_link;
|
2012-07-26 17:49:27 +04:00
|
|
|
lwc_string *corestring_lwc_meta;
|
2012-07-22 18:48:55 +04:00
|
|
|
lwc_string *corestring_lwc_middle;
|
2012-07-23 15:06:43 +04:00
|
|
|
lwc_string *corestring_lwc_multipart_form_data;
|
2012-07-26 18:57:33 +04:00
|
|
|
lwc_string *corestring_lwc_no;
|
2012-07-26 17:49:27 +04:00
|
|
|
lwc_string *corestring_lwc_noscript;
|
2012-07-22 18:48:55 +04:00
|
|
|
lwc_string *corestring_lwc_object;
|
2012-07-26 18:57:33 +04:00
|
|
|
lwc_string *corestring_lwc_optgroup;
|
|
|
|
lwc_string *corestring_lwc_option;
|
2012-07-22 18:48:55 +04:00
|
|
|
lwc_string *corestring_lwc_p;
|
2012-07-26 18:57:33 +04:00
|
|
|
lwc_string *corestring_lwc_param;
|
2012-07-22 18:48:55 +04:00
|
|
|
lwc_string *corestring_lwc_password;
|
2012-07-22 23:52:34 +04:00
|
|
|
lwc_string *corestring_lwc_poly;
|
|
|
|
lwc_string *corestring_lwc_polygon;
|
2012-07-23 15:06:43 +04:00
|
|
|
lwc_string *corestring_lwc_post;
|
|
|
|
lwc_string *corestring_lwc_radio;
|
2012-07-22 23:52:34 +04:00
|
|
|
lwc_string *corestring_lwc_rect;
|
|
|
|
lwc_string *corestring_lwc_rectangle;
|
2012-07-26 17:49:27 +04:00
|
|
|
lwc_string *corestring_lwc_refresh;
|
2012-07-23 15:06:43 +04:00
|
|
|
lwc_string *corestring_lwc_reset;
|
2014-01-25 00:08:41 +04:00
|
|
|
lwc_string *corestring_lwc_resource;
|
2012-07-22 18:48:55 +04:00
|
|
|
lwc_string *corestring_lwc_right;
|
2012-11-04 21:29:26 +04:00
|
|
|
lwc_string *corestring_lwc_search;
|
2012-09-19 17:42:05 +04:00
|
|
|
lwc_string *corestring_lwc_select;
|
2014-01-25 03:13:18 +04:00
|
|
|
lwc_string *corestring_lwc_shortcut_icon;
|
2012-07-26 18:57:33 +04:00
|
|
|
lwc_string *corestring_lwc_src;
|
2012-07-26 17:49:27 +04:00
|
|
|
lwc_string *corestring_lwc_style;
|
2012-07-23 15:06:43 +04:00
|
|
|
lwc_string *corestring_lwc_submit;
|
2012-07-22 18:48:55 +04:00
|
|
|
lwc_string *corestring_lwc_table;
|
|
|
|
lwc_string *corestring_lwc_tbody;
|
|
|
|
lwc_string *corestring_lwc_td;
|
|
|
|
lwc_string *corestring_lwc_text;
|
|
|
|
lwc_string *corestring_lwc_textarea;
|
|
|
|
lwc_string *corestring_lwc_texttop;
|
2012-07-26 17:49:27 +04:00
|
|
|
lwc_string *corestring_lwc_text_css;
|
2012-07-22 18:48:55 +04:00
|
|
|
lwc_string *corestring_lwc_tfoot;
|
|
|
|
lwc_string *corestring_lwc_th;
|
|
|
|
lwc_string *corestring_lwc_thead;
|
2012-07-23 15:06:43 +04:00
|
|
|
lwc_string *corestring_lwc_title;
|
2012-07-22 18:48:55 +04:00
|
|
|
lwc_string *corestring_lwc_top;
|
|
|
|
lwc_string *corestring_lwc_tr;
|
2012-10-12 19:21:29 +04:00
|
|
|
lwc_string *corestring_lwc_ul;
|
2012-07-26 17:49:27 +04:00
|
|
|
lwc_string *corestring_lwc_url;
|
2012-07-26 18:57:33 +04:00
|
|
|
lwc_string *corestring_lwc_yes;
|
2012-07-23 02:28:45 +04:00
|
|
|
lwc_string *corestring_lwc__blank;
|
|
|
|
lwc_string *corestring_lwc__parent;
|
|
|
|
lwc_string *corestring_lwc__self;
|
|
|
|
lwc_string *corestring_lwc__top;
|
2012-07-22 18:48:55 +04:00
|
|
|
|
|
|
|
/* dom_string strings */
|
2012-07-22 23:52:34 +04:00
|
|
|
dom_string *corestring_dom_a;
|
2014-01-24 22:58:12 +04:00
|
|
|
dom_string *corestring_dom_alt;
|
2012-11-28 21:19:49 +04:00
|
|
|
dom_string *corestring_dom_abort;
|
|
|
|
dom_string *corestring_dom_afterprint;
|
2012-07-22 18:48:55 +04:00
|
|
|
dom_string *corestring_dom_align;
|
2012-07-22 23:52:34 +04:00
|
|
|
dom_string *corestring_dom_area;
|
2012-07-27 19:59:49 +04:00
|
|
|
dom_string *corestring_dom_async;
|
2012-07-22 18:48:55 +04:00
|
|
|
dom_string *corestring_dom_background;
|
2012-11-28 21:19:49 +04:00
|
|
|
dom_string *corestring_dom_beforeprint;
|
|
|
|
dom_string *corestring_dom_beforeunload;
|
2012-07-22 18:48:55 +04:00
|
|
|
dom_string *corestring_dom_bgcolor;
|
2012-11-28 21:19:49 +04:00
|
|
|
dom_string *corestring_dom_blur;
|
2012-07-22 18:48:55 +04:00
|
|
|
dom_string *corestring_dom_border;
|
|
|
|
dom_string *corestring_dom_bordercolor;
|
2012-11-28 21:19:49 +04:00
|
|
|
dom_string *corestring_dom_cancel;
|
|
|
|
dom_string *corestring_dom_canplay;
|
|
|
|
dom_string *corestring_dom_canplaythrough;
|
2012-07-22 18:48:55 +04:00
|
|
|
dom_string *corestring_dom_cellpadding;
|
|
|
|
dom_string *corestring_dom_cellspacing;
|
2012-11-28 21:19:49 +04:00
|
|
|
dom_string *corestring_dom_change;
|
2012-12-31 03:33:27 +04:00
|
|
|
dom_string *corestring_dom_charset;
|
2013-01-23 21:00:13 +04:00
|
|
|
dom_string *corestring_dom_class;
|
2014-01-24 22:58:12 +04:00
|
|
|
dom_string *corestring_dom_classid;
|
2012-11-28 21:19:49 +04:00
|
|
|
dom_string *corestring_dom_click;
|
|
|
|
dom_string *corestring_dom_close;
|
2014-01-24 22:58:12 +04:00
|
|
|
dom_string *corestring_dom_codebase;
|
2012-07-22 18:48:55 +04:00
|
|
|
dom_string *corestring_dom_color;
|
|
|
|
dom_string *corestring_dom_cols;
|
2014-01-24 22:58:12 +04:00
|
|
|
dom_string *corestring_dom_colspan;
|
2012-07-23 02:28:45 +04:00
|
|
|
dom_string *corestring_dom_content;
|
2012-11-28 21:19:49 +04:00
|
|
|
dom_string *corestring_dom_contextmenu;
|
2012-07-22 23:52:34 +04:00
|
|
|
dom_string *corestring_dom_coords;
|
2012-11-28 21:19:49 +04:00
|
|
|
dom_string *corestring_dom_cuechange;
|
2014-01-24 22:58:12 +04:00
|
|
|
dom_string *corestring_dom_data;
|
2012-11-28 21:19:49 +04:00
|
|
|
dom_string *corestring_dom_dblclick;
|
2012-07-27 19:59:49 +04:00
|
|
|
dom_string *corestring_dom_defer;
|
2013-02-20 03:51:16 +04:00
|
|
|
dom_string *corestring_dom_DOMAttrModified;
|
|
|
|
dom_string *corestring_dom_DOMNodeInserted;
|
|
|
|
dom_string *corestring_dom_DOMNodeInsertedIntoDocument;
|
|
|
|
dom_string *corestring_dom_DOMSubtreeModified;
|
2012-11-28 21:19:49 +04:00
|
|
|
dom_string *corestring_dom_drag;
|
|
|
|
dom_string *corestring_dom_dragend;
|
|
|
|
dom_string *corestring_dom_dragenter;
|
|
|
|
dom_string *corestring_dom_dragleave;
|
|
|
|
dom_string *corestring_dom_dragover;
|
|
|
|
dom_string *corestring_dom_dragstart;
|
|
|
|
dom_string *corestring_dom_drop;
|
|
|
|
dom_string *corestring_dom_durationchange;
|
|
|
|
dom_string *corestring_dom_emptied;
|
|
|
|
dom_string *corestring_dom_ended;
|
|
|
|
dom_string *corestring_dom_error;
|
|
|
|
dom_string *corestring_dom_focus;
|
2014-01-24 22:58:12 +04:00
|
|
|
dom_string *corestring_dom_frameborder;
|
2012-11-28 21:19:49 +04:00
|
|
|
dom_string *corestring_dom_hashchange;
|
2012-07-22 18:48:55 +04:00
|
|
|
dom_string *corestring_dom_height;
|
|
|
|
dom_string *corestring_dom_href;
|
2012-07-23 02:28:45 +04:00
|
|
|
dom_string *corestring_dom_hreflang;
|
2012-07-22 18:48:55 +04:00
|
|
|
dom_string *corestring_dom_hspace;
|
2012-07-23 02:28:45 +04:00
|
|
|
dom_string *corestring_dom_http_equiv;
|
2012-07-22 23:52:34 +04:00
|
|
|
dom_string *corestring_dom_id;
|
2012-11-28 21:19:49 +04:00
|
|
|
dom_string *corestring_dom_input;
|
|
|
|
dom_string *corestring_dom_invalid;
|
|
|
|
dom_string *corestring_dom_keydown;
|
|
|
|
dom_string *corestring_dom_keypress;
|
|
|
|
dom_string *corestring_dom_keyup;
|
2012-07-22 18:48:55 +04:00
|
|
|
dom_string *corestring_dom_link;
|
2012-11-28 21:19:49 +04:00
|
|
|
dom_string *corestring_dom_load;
|
|
|
|
dom_string *corestring_dom_loadeddata;
|
|
|
|
dom_string *corestring_dom_loadedmetadata;
|
|
|
|
dom_string *corestring_dom_loadstart;
|
2012-07-22 23:52:34 +04:00
|
|
|
dom_string *corestring_dom_map;
|
2014-01-24 22:58:12 +04:00
|
|
|
dom_string *corestring_dom_marginheight;
|
|
|
|
dom_string *corestring_dom_marginwidth;
|
2012-07-23 02:28:45 +04:00
|
|
|
dom_string *corestring_dom_media;
|
2012-11-28 21:19:49 +04:00
|
|
|
dom_string *corestring_dom_message;
|
|
|
|
dom_string *corestring_dom_mousedown;
|
|
|
|
dom_string *corestring_dom_mousemove;
|
|
|
|
dom_string *corestring_dom_mouseout;
|
|
|
|
dom_string *corestring_dom_mouseover;
|
|
|
|
dom_string *corestring_dom_mouseup;
|
|
|
|
dom_string *corestring_dom_mousewheel;
|
2012-07-22 23:52:34 +04:00
|
|
|
dom_string *corestring_dom_name;
|
|
|
|
dom_string *corestring_dom_nohref;
|
2014-01-24 22:58:12 +04:00
|
|
|
dom_string *corestring_dom_noresize;
|
2012-11-28 21:19:49 +04:00
|
|
|
dom_string *corestring_dom_offline;
|
|
|
|
dom_string *corestring_dom_online;
|
|
|
|
dom_string *corestring_dom_pagehide;
|
|
|
|
dom_string *corestring_dom_pageshow;
|
|
|
|
dom_string *corestring_dom_pause;
|
|
|
|
dom_string *corestring_dom_play;
|
|
|
|
dom_string *corestring_dom_playing;
|
|
|
|
dom_string *corestring_dom_popstate;
|
|
|
|
dom_string *corestring_dom_progress;
|
|
|
|
dom_string *corestring_dom_ratechange;
|
2012-12-17 18:55:16 +04:00
|
|
|
dom_string *corestring_dom_readystatechange;
|
2012-07-22 23:52:34 +04:00
|
|
|
dom_string *corestring_dom_rect;
|
2012-07-23 02:28:45 +04:00
|
|
|
dom_string *corestring_dom_rel;
|
2012-11-28 21:19:49 +04:00
|
|
|
dom_string *corestring_dom_reset;
|
|
|
|
dom_string *corestring_dom_resize;
|
2012-07-22 18:48:55 +04:00
|
|
|
dom_string *corestring_dom_rows;
|
2014-01-24 22:58:12 +04:00
|
|
|
dom_string *corestring_dom_rowspan;
|
2012-11-28 21:19:49 +04:00
|
|
|
dom_string *corestring_dom_scroll;
|
2014-01-24 22:58:12 +04:00
|
|
|
dom_string *corestring_dom_scrolling;
|
2012-11-28 21:19:49 +04:00
|
|
|
dom_string *corestring_dom_seeked;
|
|
|
|
dom_string *corestring_dom_seeking;
|
|
|
|
dom_string *corestring_dom_select;
|
2014-01-24 22:58:12 +04:00
|
|
|
dom_string *corestring_dom_selected;
|
2012-11-28 21:19:49 +04:00
|
|
|
dom_string *corestring_dom_shape;
|
|
|
|
dom_string *corestring_dom_show;
|
2012-07-22 18:48:55 +04:00
|
|
|
dom_string *corestring_dom_size;
|
2012-07-23 02:28:45 +04:00
|
|
|
dom_string *corestring_dom_sizes;
|
2012-07-22 21:58:22 +04:00
|
|
|
dom_string *corestring_dom_src;
|
2012-11-28 21:19:49 +04:00
|
|
|
dom_string *corestring_dom_stalled;
|
|
|
|
dom_string *corestring_dom_storage;
|
2013-02-20 03:51:16 +04:00
|
|
|
dom_string *corestring_dom_style;
|
2012-11-28 21:19:49 +04:00
|
|
|
dom_string *corestring_dom_submit;
|
|
|
|
dom_string *corestring_dom_suspend;
|
2012-07-22 23:52:34 +04:00
|
|
|
dom_string *corestring_dom_target;
|
2012-07-22 18:48:55 +04:00
|
|
|
dom_string *corestring_dom_text;
|
2012-07-22 21:58:22 +04:00
|
|
|
dom_string *corestring_dom_text_javascript;
|
2012-11-28 21:19:49 +04:00
|
|
|
dom_string *corestring_dom_timeupdate;
|
2014-01-24 22:58:12 +04:00
|
|
|
dom_string *corestring_dom_title;
|
2012-07-22 18:48:55 +04:00
|
|
|
dom_string *corestring_dom_type;
|
2012-11-28 21:19:49 +04:00
|
|
|
dom_string *corestring_dom_unload;
|
2012-07-22 18:48:55 +04:00
|
|
|
dom_string *corestring_dom_valign;
|
2014-01-24 22:58:12 +04:00
|
|
|
dom_string *corestring_dom_value;
|
2012-07-22 18:48:55 +04:00
|
|
|
dom_string *corestring_dom_vlink;
|
2012-11-28 21:19:49 +04:00
|
|
|
dom_string *corestring_dom_volumechange;
|
2012-07-22 18:48:55 +04:00
|
|
|
dom_string *corestring_dom_vspace;
|
2012-11-28 21:19:49 +04:00
|
|
|
dom_string *corestring_dom_waiting;
|
2012-07-22 18:48:55 +04:00
|
|
|
dom_string *corestring_dom_width;
|
2014-01-05 19:50:23 +04:00
|
|
|
dom_string *corestring_dom_BUTTON;
|
|
|
|
dom_string *corestring_dom_INPUT;
|
|
|
|
dom_string *corestring_dom_SELECT;
|
|
|
|
dom_string *corestring_dom_TEXTAREA;
|
|
|
|
dom_string *corestring_dom_button;
|
|
|
|
dom_string *corestring_dom_image;
|
|
|
|
dom_string *corestring_dom_radio;
|
|
|
|
dom_string *corestring_dom_checkbox;
|
|
|
|
dom_string *corestring_dom_file;
|
|
|
|
dom_string *corestring_dom_on;
|
2014-01-24 22:58:12 +04:00
|
|
|
dom_string *corestring_dom___ns_key_box_node_data;
|
2013-12-14 03:02:15 +04:00
|
|
|
dom_string *corestring_dom___ns_key_libcss_node_data;
|
2014-01-04 20:30:52 +04:00
|
|
|
dom_string *corestring_dom___ns_key_file_name_node_data;
|
2014-01-05 20:14:17 +04:00
|
|
|
dom_string *corestring_dom___ns_key_image_coords_node_data;
|
2012-07-22 18:48:55 +04:00
|
|
|
|
2014-02-08 19:00:08 +04:00
|
|
|
/* nsurl URLs */
|
|
|
|
nsurl *corestring_nsurl_about_blank;
|
|
|
|
|
2012-07-22 18:48:55 +04:00
|
|
|
/*
|
|
|
|
* Free the core strings
|
|
|
|
*/
|
|
|
|
void corestrings_fini(void)
|
|
|
|
{
|
|
|
|
#define CSS_LWC_STRING_UNREF(NAME) \
|
|
|
|
do { \
|
|
|
|
if (corestring_lwc_##NAME != NULL) { \
|
|
|
|
lwc_string_unref(corestring_lwc_##NAME); \
|
|
|
|
corestring_lwc_##NAME = NULL; \
|
|
|
|
} \
|
|
|
|
} while (0)
|
|
|
|
|
|
|
|
CSS_LWC_STRING_UNREF(a);
|
2014-01-25 00:08:41 +04:00
|
|
|
CSS_LWC_STRING_UNREF(about);
|
2012-07-22 18:48:55 +04:00
|
|
|
CSS_LWC_STRING_UNREF(abscenter);
|
|
|
|
CSS_LWC_STRING_UNREF(absmiddle);
|
|
|
|
CSS_LWC_STRING_UNREF(align);
|
|
|
|
CSS_LWC_STRING_UNREF(applet);
|
2012-07-23 02:28:45 +04:00
|
|
|
CSS_LWC_STRING_UNREF(base);
|
2012-07-22 18:48:55 +04:00
|
|
|
CSS_LWC_STRING_UNREF(baseline);
|
|
|
|
CSS_LWC_STRING_UNREF(body);
|
|
|
|
CSS_LWC_STRING_UNREF(bottom);
|
2012-07-22 21:01:10 +04:00
|
|
|
CSS_LWC_STRING_UNREF(button);
|
2012-07-22 18:48:55 +04:00
|
|
|
CSS_LWC_STRING_UNREF(caption);
|
2013-02-24 17:15:05 +04:00
|
|
|
CSS_LWC_STRING_UNREF(charset);
|
2012-07-22 18:48:55 +04:00
|
|
|
CSS_LWC_STRING_UNREF(center);
|
2012-07-23 15:06:43 +04:00
|
|
|
CSS_LWC_STRING_UNREF(checkbox);
|
2012-07-22 23:52:34 +04:00
|
|
|
CSS_LWC_STRING_UNREF(circle);
|
2012-07-22 18:48:55 +04:00
|
|
|
CSS_LWC_STRING_UNREF(col);
|
2014-01-25 00:08:41 +04:00
|
|
|
CSS_LWC_STRING_UNREF(data);
|
2012-07-22 23:52:34 +04:00
|
|
|
CSS_LWC_STRING_UNREF(default);
|
2012-07-22 18:48:55 +04:00
|
|
|
CSS_LWC_STRING_UNREF(div);
|
|
|
|
CSS_LWC_STRING_UNREF(embed);
|
2012-07-23 15:06:43 +04:00
|
|
|
CSS_LWC_STRING_UNREF(file);
|
2014-01-25 13:53:54 +04:00
|
|
|
CSS_LWC_STRING_UNREF(filename);
|
2012-07-22 18:48:55 +04:00
|
|
|
CSS_LWC_STRING_UNREF(font);
|
2012-07-26 18:57:33 +04:00
|
|
|
CSS_LWC_STRING_UNREF(frame);
|
|
|
|
CSS_LWC_STRING_UNREF(frameset);
|
2012-07-22 18:48:55 +04:00
|
|
|
CSS_LWC_STRING_UNREF(h1);
|
|
|
|
CSS_LWC_STRING_UNREF(h2);
|
|
|
|
CSS_LWC_STRING_UNREF(h3);
|
|
|
|
CSS_LWC_STRING_UNREF(h4);
|
|
|
|
CSS_LWC_STRING_UNREF(h5);
|
|
|
|
CSS_LWC_STRING_UNREF(h6);
|
2012-07-23 02:28:45 +04:00
|
|
|
CSS_LWC_STRING_UNREF(head);
|
2012-07-23 15:06:43 +04:00
|
|
|
CSS_LWC_STRING_UNREF(hidden);
|
2012-07-22 18:48:55 +04:00
|
|
|
CSS_LWC_STRING_UNREF(hr);
|
2012-07-23 02:28:45 +04:00
|
|
|
CSS_LWC_STRING_UNREF(html);
|
2014-01-24 23:25:07 +04:00
|
|
|
CSS_LWC_STRING_UNREF(http);
|
2012-10-08 22:26:35 +04:00
|
|
|
CSS_LWC_STRING_UNREF(https);
|
2014-01-25 03:13:18 +04:00
|
|
|
CSS_LWC_STRING_UNREF(icon);
|
2012-07-22 18:48:55 +04:00
|
|
|
CSS_LWC_STRING_UNREF(iframe);
|
2012-07-23 15:06:43 +04:00
|
|
|
CSS_LWC_STRING_UNREF(image);
|
2012-07-22 18:48:55 +04:00
|
|
|
CSS_LWC_STRING_UNREF(img);
|
|
|
|
CSS_LWC_STRING_UNREF(input);
|
|
|
|
CSS_LWC_STRING_UNREF(justify);
|
|
|
|
CSS_LWC_STRING_UNREF(left);
|
2012-10-12 19:21:29 +04:00
|
|
|
CSS_LWC_STRING_UNREF(li);
|
2012-07-23 02:28:45 +04:00
|
|
|
CSS_LWC_STRING_UNREF(link);
|
2012-07-26 17:49:27 +04:00
|
|
|
CSS_LWC_STRING_UNREF(meta);
|
2012-07-22 18:48:55 +04:00
|
|
|
CSS_LWC_STRING_UNREF(middle);
|
2012-07-23 15:06:43 +04:00
|
|
|
CSS_LWC_STRING_UNREF(multipart_form_data);
|
2012-07-26 18:57:33 +04:00
|
|
|
CSS_LWC_STRING_UNREF(no);
|
2012-07-26 17:49:27 +04:00
|
|
|
CSS_LWC_STRING_UNREF(noscript);
|
2012-07-22 18:48:55 +04:00
|
|
|
CSS_LWC_STRING_UNREF(object);
|
2012-07-26 18:57:33 +04:00
|
|
|
CSS_LWC_STRING_UNREF(optgroup);
|
|
|
|
CSS_LWC_STRING_UNREF(option);
|
2012-07-22 18:48:55 +04:00
|
|
|
CSS_LWC_STRING_UNREF(p);
|
2012-07-26 18:57:33 +04:00
|
|
|
CSS_LWC_STRING_UNREF(param);
|
2012-07-22 18:48:55 +04:00
|
|
|
CSS_LWC_STRING_UNREF(password);
|
2012-07-22 23:52:34 +04:00
|
|
|
CSS_LWC_STRING_UNREF(poly);
|
|
|
|
CSS_LWC_STRING_UNREF(polygon);
|
2012-07-23 15:06:43 +04:00
|
|
|
CSS_LWC_STRING_UNREF(post);
|
|
|
|
CSS_LWC_STRING_UNREF(radio);
|
2012-07-22 23:52:34 +04:00
|
|
|
CSS_LWC_STRING_UNREF(rect);
|
|
|
|
CSS_LWC_STRING_UNREF(rectangle);
|
2012-07-26 17:49:27 +04:00
|
|
|
CSS_LWC_STRING_UNREF(refresh);
|
2012-07-23 15:06:43 +04:00
|
|
|
CSS_LWC_STRING_UNREF(reset);
|
2014-01-25 00:08:41 +04:00
|
|
|
CSS_LWC_STRING_UNREF(resource);
|
2012-07-22 18:48:55 +04:00
|
|
|
CSS_LWC_STRING_UNREF(right);
|
2012-11-04 21:29:26 +04:00
|
|
|
CSS_LWC_STRING_UNREF(search);
|
2012-09-19 17:42:05 +04:00
|
|
|
CSS_LWC_STRING_UNREF(select);
|
2014-01-25 03:13:18 +04:00
|
|
|
CSS_LWC_STRING_UNREF(shortcut_icon);
|
2012-07-26 18:57:33 +04:00
|
|
|
CSS_LWC_STRING_UNREF(src);
|
2012-07-26 17:49:27 +04:00
|
|
|
CSS_LWC_STRING_UNREF(style);
|
2012-07-23 15:06:43 +04:00
|
|
|
CSS_LWC_STRING_UNREF(submit);
|
2012-07-22 18:48:55 +04:00
|
|
|
CSS_LWC_STRING_UNREF(table);
|
|
|
|
CSS_LWC_STRING_UNREF(tbody);
|
|
|
|
CSS_LWC_STRING_UNREF(td);
|
|
|
|
CSS_LWC_STRING_UNREF(text);
|
|
|
|
CSS_LWC_STRING_UNREF(textarea);
|
|
|
|
CSS_LWC_STRING_UNREF(texttop);
|
2012-07-26 17:49:27 +04:00
|
|
|
CSS_LWC_STRING_UNREF(text_css);
|
2012-07-22 18:48:55 +04:00
|
|
|
CSS_LWC_STRING_UNREF(tfoot);
|
|
|
|
CSS_LWC_STRING_UNREF(th);
|
|
|
|
CSS_LWC_STRING_UNREF(thead);
|
2012-07-23 15:06:43 +04:00
|
|
|
CSS_LWC_STRING_UNREF(title);
|
2012-07-22 18:48:55 +04:00
|
|
|
CSS_LWC_STRING_UNREF(top);
|
|
|
|
CSS_LWC_STRING_UNREF(tr);
|
2012-10-12 19:21:29 +04:00
|
|
|
CSS_LWC_STRING_UNREF(ul);
|
2012-07-26 17:49:27 +04:00
|
|
|
CSS_LWC_STRING_UNREF(url);
|
2012-07-26 18:57:33 +04:00
|
|
|
CSS_LWC_STRING_UNREF(yes);
|
2012-07-23 02:28:45 +04:00
|
|
|
CSS_LWC_STRING_UNREF(_blank);
|
|
|
|
CSS_LWC_STRING_UNREF(_parent);
|
|
|
|
CSS_LWC_STRING_UNREF(_self);
|
|
|
|
CSS_LWC_STRING_UNREF(_top);
|
2012-07-23 15:06:43 +04:00
|
|
|
|
2012-07-22 18:48:55 +04:00
|
|
|
#undef CSS_LWC_STRING_UNREF
|
|
|
|
|
|
|
|
#define CSS_DOM_STRING_UNREF(NAME) \
|
|
|
|
do { \
|
|
|
|
if (corestring_dom_##NAME != NULL) { \
|
|
|
|
dom_string_unref(corestring_dom_##NAME); \
|
|
|
|
corestring_dom_##NAME = NULL; \
|
|
|
|
} \
|
|
|
|
} while (0)
|
|
|
|
|
2012-07-22 23:52:34 +04:00
|
|
|
CSS_DOM_STRING_UNREF(a);
|
2012-11-28 21:19:49 +04:00
|
|
|
CSS_DOM_STRING_UNREF(abort);
|
|
|
|
CSS_DOM_STRING_UNREF(afterprint);
|
2012-07-22 18:48:55 +04:00
|
|
|
CSS_DOM_STRING_UNREF(align);
|
2014-01-24 22:58:12 +04:00
|
|
|
CSS_DOM_STRING_UNREF(alt);
|
2012-07-22 23:52:34 +04:00
|
|
|
CSS_DOM_STRING_UNREF(area);
|
2012-07-27 19:59:49 +04:00
|
|
|
CSS_DOM_STRING_UNREF(async);
|
2012-07-22 18:48:55 +04:00
|
|
|
CSS_DOM_STRING_UNREF(background);
|
2012-11-28 21:19:49 +04:00
|
|
|
CSS_DOM_STRING_UNREF(beforeprint);
|
|
|
|
CSS_DOM_STRING_UNREF(beforeunload);
|
2012-07-22 18:48:55 +04:00
|
|
|
CSS_DOM_STRING_UNREF(bgcolor);
|
2012-11-28 21:19:49 +04:00
|
|
|
CSS_DOM_STRING_UNREF(blur);
|
2012-07-22 18:48:55 +04:00
|
|
|
CSS_DOM_STRING_UNREF(border);
|
|
|
|
CSS_DOM_STRING_UNREF(bordercolor);
|
2012-11-28 21:19:49 +04:00
|
|
|
CSS_DOM_STRING_UNREF(cancel);
|
|
|
|
CSS_DOM_STRING_UNREF(canplay);
|
|
|
|
CSS_DOM_STRING_UNREF(canplaythrough);
|
2012-07-22 18:48:55 +04:00
|
|
|
CSS_DOM_STRING_UNREF(cellpadding);
|
|
|
|
CSS_DOM_STRING_UNREF(cellspacing);
|
2012-11-28 21:19:49 +04:00
|
|
|
CSS_DOM_STRING_UNREF(change);
|
2012-12-31 03:33:27 +04:00
|
|
|
CSS_DOM_STRING_UNREF(charset);
|
2013-01-23 21:00:13 +04:00
|
|
|
CSS_DOM_STRING_UNREF(class);
|
2014-01-24 22:58:12 +04:00
|
|
|
CSS_DOM_STRING_UNREF(classid);
|
2012-11-28 21:19:49 +04:00
|
|
|
CSS_DOM_STRING_UNREF(click);
|
|
|
|
CSS_DOM_STRING_UNREF(close);
|
2014-01-24 22:58:12 +04:00
|
|
|
CSS_DOM_STRING_UNREF(codebase);
|
2012-07-22 18:48:55 +04:00
|
|
|
CSS_DOM_STRING_UNREF(color);
|
|
|
|
CSS_DOM_STRING_UNREF(cols);
|
2014-01-24 22:58:12 +04:00
|
|
|
CSS_DOM_STRING_UNREF(colspan);
|
2012-07-23 02:28:45 +04:00
|
|
|
CSS_DOM_STRING_UNREF(content);
|
2012-11-28 21:19:49 +04:00
|
|
|
CSS_DOM_STRING_UNREF(contextmenu);
|
2012-07-22 23:52:34 +04:00
|
|
|
CSS_DOM_STRING_UNREF(coords);
|
2012-11-28 21:19:49 +04:00
|
|
|
CSS_DOM_STRING_UNREF(cuechange);
|
2014-01-24 22:58:12 +04:00
|
|
|
CSS_DOM_STRING_UNREF(data);
|
2012-11-28 21:19:49 +04:00
|
|
|
CSS_DOM_STRING_UNREF(dblclick);
|
2012-07-27 19:59:49 +04:00
|
|
|
CSS_DOM_STRING_UNREF(defer);
|
2013-02-20 03:51:16 +04:00
|
|
|
CSS_DOM_STRING_UNREF(DOMAttrModified);
|
|
|
|
CSS_DOM_STRING_UNREF(DOMNodeInserted);
|
|
|
|
CSS_DOM_STRING_UNREF(DOMNodeInsertedIntoDocument);
|
|
|
|
CSS_DOM_STRING_UNREF(DOMSubtreeModified);
|
2012-11-28 21:19:49 +04:00
|
|
|
CSS_DOM_STRING_UNREF(drag);
|
|
|
|
CSS_DOM_STRING_UNREF(dragend);
|
|
|
|
CSS_DOM_STRING_UNREF(dragenter);
|
|
|
|
CSS_DOM_STRING_UNREF(dragleave);
|
|
|
|
CSS_DOM_STRING_UNREF(dragover);
|
|
|
|
CSS_DOM_STRING_UNREF(dragstart);
|
|
|
|
CSS_DOM_STRING_UNREF(drop);
|
|
|
|
CSS_DOM_STRING_UNREF(durationchange);
|
|
|
|
CSS_DOM_STRING_UNREF(emptied);
|
|
|
|
CSS_DOM_STRING_UNREF(ended);
|
|
|
|
CSS_DOM_STRING_UNREF(error);
|
|
|
|
CSS_DOM_STRING_UNREF(focus);
|
2014-01-24 22:58:12 +04:00
|
|
|
CSS_DOM_STRING_UNREF(frameborder);
|
2012-11-28 21:19:49 +04:00
|
|
|
CSS_DOM_STRING_UNREF(hashchange);
|
2012-07-22 18:48:55 +04:00
|
|
|
CSS_DOM_STRING_UNREF(height);
|
|
|
|
CSS_DOM_STRING_UNREF(href);
|
2012-07-23 02:28:45 +04:00
|
|
|
CSS_DOM_STRING_UNREF(hreflang);
|
2012-07-22 18:48:55 +04:00
|
|
|
CSS_DOM_STRING_UNREF(hspace);
|
2012-07-23 02:28:45 +04:00
|
|
|
CSS_DOM_STRING_UNREF(http_equiv);
|
2012-07-22 23:52:34 +04:00
|
|
|
CSS_DOM_STRING_UNREF(id);
|
2012-11-28 21:19:49 +04:00
|
|
|
CSS_DOM_STRING_UNREF(input);
|
|
|
|
CSS_DOM_STRING_UNREF(invalid);
|
|
|
|
CSS_DOM_STRING_UNREF(keydown);
|
|
|
|
CSS_DOM_STRING_UNREF(keypress);
|
|
|
|
CSS_DOM_STRING_UNREF(keyup);
|
2012-07-22 18:48:55 +04:00
|
|
|
CSS_DOM_STRING_UNREF(link);
|
2012-11-28 21:19:49 +04:00
|
|
|
CSS_DOM_STRING_UNREF(load);
|
|
|
|
CSS_DOM_STRING_UNREF(loadeddata);
|
|
|
|
CSS_DOM_STRING_UNREF(loadedmetadata);
|
|
|
|
CSS_DOM_STRING_UNREF(loadstart);
|
2012-07-22 23:52:34 +04:00
|
|
|
CSS_DOM_STRING_UNREF(map);
|
2014-01-24 22:58:12 +04:00
|
|
|
CSS_DOM_STRING_UNREF(marginheight);
|
|
|
|
CSS_DOM_STRING_UNREF(marginwidth);
|
2012-07-23 02:28:45 +04:00
|
|
|
CSS_DOM_STRING_UNREF(media);
|
2012-11-28 21:19:49 +04:00
|
|
|
CSS_DOM_STRING_UNREF(message);
|
|
|
|
CSS_DOM_STRING_UNREF(mousedown);
|
|
|
|
CSS_DOM_STRING_UNREF(mousemove);
|
|
|
|
CSS_DOM_STRING_UNREF(mouseout);
|
|
|
|
CSS_DOM_STRING_UNREF(mouseover);
|
|
|
|
CSS_DOM_STRING_UNREF(mouseup);
|
|
|
|
CSS_DOM_STRING_UNREF(mousewheel);
|
2012-07-22 23:52:34 +04:00
|
|
|
CSS_DOM_STRING_UNREF(name);
|
|
|
|
CSS_DOM_STRING_UNREF(nohref);
|
2014-01-24 22:58:12 +04:00
|
|
|
CSS_DOM_STRING_UNREF(noresize);
|
2012-11-28 21:19:49 +04:00
|
|
|
CSS_DOM_STRING_UNREF(offline);
|
|
|
|
CSS_DOM_STRING_UNREF(online);
|
|
|
|
CSS_DOM_STRING_UNREF(pagehide);
|
|
|
|
CSS_DOM_STRING_UNREF(pageshow);
|
|
|
|
CSS_DOM_STRING_UNREF(pause);
|
|
|
|
CSS_DOM_STRING_UNREF(play);
|
|
|
|
CSS_DOM_STRING_UNREF(playing);
|
|
|
|
CSS_DOM_STRING_UNREF(popstate);
|
|
|
|
CSS_DOM_STRING_UNREF(progress);
|
|
|
|
CSS_DOM_STRING_UNREF(ratechange);
|
2012-12-17 18:55:16 +04:00
|
|
|
CSS_DOM_STRING_UNREF(readystatechange);
|
2012-07-22 23:52:34 +04:00
|
|
|
CSS_DOM_STRING_UNREF(rect);
|
2012-07-23 02:28:45 +04:00
|
|
|
CSS_DOM_STRING_UNREF(rel);
|
2012-11-28 21:19:49 +04:00
|
|
|
CSS_DOM_STRING_UNREF(reset);
|
|
|
|
CSS_DOM_STRING_UNREF(resize);
|
2012-07-22 18:48:55 +04:00
|
|
|
CSS_DOM_STRING_UNREF(rows);
|
2014-01-24 22:58:12 +04:00
|
|
|
CSS_DOM_STRING_UNREF(rowspan);
|
2012-11-28 21:19:49 +04:00
|
|
|
CSS_DOM_STRING_UNREF(scroll);
|
2014-01-24 22:58:12 +04:00
|
|
|
CSS_DOM_STRING_UNREF(scrolling);
|
2012-11-28 21:19:49 +04:00
|
|
|
CSS_DOM_STRING_UNREF(seeked);
|
|
|
|
CSS_DOM_STRING_UNREF(seeking);
|
|
|
|
CSS_DOM_STRING_UNREF(select);
|
2014-01-24 22:58:12 +04:00
|
|
|
CSS_DOM_STRING_UNREF(selected);
|
2012-11-28 21:19:49 +04:00
|
|
|
CSS_DOM_STRING_UNREF(shape);
|
|
|
|
CSS_DOM_STRING_UNREF(show);
|
2012-07-22 18:48:55 +04:00
|
|
|
CSS_DOM_STRING_UNREF(size);
|
2012-07-23 02:28:45 +04:00
|
|
|
CSS_DOM_STRING_UNREF(sizes);
|
2012-07-22 21:58:22 +04:00
|
|
|
CSS_DOM_STRING_UNREF(src);
|
2012-11-28 21:19:49 +04:00
|
|
|
CSS_DOM_STRING_UNREF(stalled);
|
|
|
|
CSS_DOM_STRING_UNREF(storage);
|
2013-02-20 03:51:16 +04:00
|
|
|
CSS_DOM_STRING_UNREF(style);
|
2012-11-28 21:19:49 +04:00
|
|
|
CSS_DOM_STRING_UNREF(submit);
|
|
|
|
CSS_DOM_STRING_UNREF(suspend);
|
2012-07-22 23:52:34 +04:00
|
|
|
CSS_DOM_STRING_UNREF(target);
|
2012-07-22 18:48:55 +04:00
|
|
|
CSS_DOM_STRING_UNREF(text);
|
2012-07-22 21:58:22 +04:00
|
|
|
CSS_DOM_STRING_UNREF(text_javascript);
|
2012-11-28 21:19:49 +04:00
|
|
|
CSS_DOM_STRING_UNREF(timeupdate);
|
2014-01-24 22:58:12 +04:00
|
|
|
CSS_DOM_STRING_UNREF(title);
|
2012-07-22 18:48:55 +04:00
|
|
|
CSS_DOM_STRING_UNREF(type);
|
2012-11-28 21:19:49 +04:00
|
|
|
CSS_DOM_STRING_UNREF(unload);
|
2012-07-22 18:48:55 +04:00
|
|
|
CSS_DOM_STRING_UNREF(valign);
|
2014-01-24 22:58:12 +04:00
|
|
|
CSS_DOM_STRING_UNREF(value);
|
2012-07-22 18:48:55 +04:00
|
|
|
CSS_DOM_STRING_UNREF(vlink);
|
2012-11-28 21:19:49 +04:00
|
|
|
CSS_DOM_STRING_UNREF(volumechange);
|
2012-07-22 18:48:55 +04:00
|
|
|
CSS_DOM_STRING_UNREF(vspace);
|
2012-11-28 21:19:49 +04:00
|
|
|
CSS_DOM_STRING_UNREF(waiting);
|
2012-07-22 18:48:55 +04:00
|
|
|
CSS_DOM_STRING_UNREF(width);
|
2014-01-05 19:50:23 +04:00
|
|
|
/* DOM node names, not really CSS */
|
|
|
|
CSS_DOM_STRING_UNREF(BUTTON);
|
|
|
|
CSS_DOM_STRING_UNREF(INPUT);
|
|
|
|
CSS_DOM_STRING_UNREF(SELECT);
|
|
|
|
CSS_DOM_STRING_UNREF(TEXTAREA);
|
|
|
|
/* DOM input types, not really CSS */
|
|
|
|
CSS_DOM_STRING_UNREF(button);
|
|
|
|
CSS_DOM_STRING_UNREF(image);
|
|
|
|
CSS_DOM_STRING_UNREF(radio);
|
|
|
|
CSS_DOM_STRING_UNREF(checkbox);
|
|
|
|
CSS_DOM_STRING_UNREF(file);
|
|
|
|
CSS_DOM_STRING_UNREF(on);
|
|
|
|
/* DOM userdata keys, not really CSS */
|
2014-01-24 22:58:12 +04:00
|
|
|
CSS_DOM_STRING_UNREF(__ns_key_box_node_data);
|
2013-12-14 03:02:15 +04:00
|
|
|
CSS_DOM_STRING_UNREF(__ns_key_libcss_node_data);
|
2014-01-04 20:30:52 +04:00
|
|
|
CSS_DOM_STRING_UNREF(__ns_key_file_name_node_data);
|
2014-01-05 20:14:17 +04:00
|
|
|
CSS_DOM_STRING_UNREF(__ns_key_image_coords_node_data);
|
2012-07-22 18:48:55 +04:00
|
|
|
#undef CSS_DOM_STRING_UNREF
|
2014-02-08 19:00:08 +04:00
|
|
|
|
|
|
|
/* nsurl URLs */
|
|
|
|
if (corestring_nsurl_about_blank != NULL)
|
|
|
|
nsurl_unref(corestring_nsurl_about_blank);
|
2012-07-22 18:48:55 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Create the core strings
|
|
|
|
*/
|
|
|
|
nserror corestrings_init(void)
|
|
|
|
{
|
|
|
|
lwc_error lerror;
|
|
|
|
nserror error;
|
|
|
|
dom_exception exc;
|
|
|
|
|
|
|
|
#define CSS_LWC_STRING_INTERN(NAME) \
|
|
|
|
do { \
|
|
|
|
lerror = lwc_intern_string( \
|
|
|
|
(const char *)#NAME, \
|
|
|
|
sizeof(#NAME) - 1, \
|
|
|
|
&corestring_lwc_##NAME ); \
|
|
|
|
if ((lerror != lwc_error_ok) || \
|
|
|
|
(corestring_lwc_##NAME == NULL)) { \
|
|
|
|
error = NSERROR_NOMEM; \
|
|
|
|
goto error; \
|
|
|
|
} \
|
|
|
|
} while(0)
|
|
|
|
|
|
|
|
CSS_LWC_STRING_INTERN(a);
|
2014-01-25 00:08:41 +04:00
|
|
|
CSS_LWC_STRING_INTERN(about);
|
2012-07-22 18:48:55 +04:00
|
|
|
CSS_LWC_STRING_INTERN(abscenter);
|
|
|
|
CSS_LWC_STRING_INTERN(absmiddle);
|
|
|
|
CSS_LWC_STRING_INTERN(align);
|
|
|
|
CSS_LWC_STRING_INTERN(applet);
|
2012-07-23 02:28:45 +04:00
|
|
|
CSS_LWC_STRING_INTERN(base);
|
2012-07-22 18:48:55 +04:00
|
|
|
CSS_LWC_STRING_INTERN(baseline);
|
|
|
|
CSS_LWC_STRING_INTERN(body);
|
|
|
|
CSS_LWC_STRING_INTERN(bottom);
|
2012-07-22 21:01:10 +04:00
|
|
|
CSS_LWC_STRING_INTERN(button);
|
2012-07-22 18:48:55 +04:00
|
|
|
CSS_LWC_STRING_INTERN(caption);
|
2013-02-24 17:15:05 +04:00
|
|
|
CSS_LWC_STRING_INTERN(charset);
|
2012-07-22 18:48:55 +04:00
|
|
|
CSS_LWC_STRING_INTERN(center);
|
2012-07-23 15:06:43 +04:00
|
|
|
CSS_LWC_STRING_INTERN(checkbox);
|
2012-07-22 23:52:34 +04:00
|
|
|
CSS_LWC_STRING_INTERN(circle);
|
2012-07-22 18:48:55 +04:00
|
|
|
CSS_LWC_STRING_INTERN(col);
|
2014-01-25 00:08:41 +04:00
|
|
|
CSS_LWC_STRING_INTERN(data);
|
2012-07-22 23:52:34 +04:00
|
|
|
CSS_LWC_STRING_INTERN(default);
|
2012-07-22 18:48:55 +04:00
|
|
|
CSS_LWC_STRING_INTERN(div);
|
|
|
|
CSS_LWC_STRING_INTERN(embed);
|
2012-07-23 15:06:43 +04:00
|
|
|
CSS_LWC_STRING_INTERN(file);
|
2014-01-25 13:53:54 +04:00
|
|
|
CSS_LWC_STRING_INTERN(filename);
|
2012-07-22 18:48:55 +04:00
|
|
|
CSS_LWC_STRING_INTERN(font);
|
2012-07-26 18:57:33 +04:00
|
|
|
CSS_LWC_STRING_INTERN(frame);
|
|
|
|
CSS_LWC_STRING_INTERN(frameset);
|
2012-07-22 18:48:55 +04:00
|
|
|
CSS_LWC_STRING_INTERN(h1);
|
|
|
|
CSS_LWC_STRING_INTERN(h2);
|
|
|
|
CSS_LWC_STRING_INTERN(h3);
|
|
|
|
CSS_LWC_STRING_INTERN(h4);
|
|
|
|
CSS_LWC_STRING_INTERN(h5);
|
|
|
|
CSS_LWC_STRING_INTERN(h6);
|
2012-07-23 02:28:45 +04:00
|
|
|
CSS_LWC_STRING_INTERN(head);
|
2012-07-23 15:06:43 +04:00
|
|
|
CSS_LWC_STRING_INTERN(hidden);
|
2012-07-22 18:48:55 +04:00
|
|
|
CSS_LWC_STRING_INTERN(hr);
|
2012-07-23 02:28:45 +04:00
|
|
|
CSS_LWC_STRING_INTERN(html);
|
2014-01-24 23:25:07 +04:00
|
|
|
CSS_LWC_STRING_INTERN(http);
|
2012-10-08 22:26:35 +04:00
|
|
|
CSS_LWC_STRING_INTERN(https);
|
2014-01-25 03:13:18 +04:00
|
|
|
CSS_LWC_STRING_INTERN(icon);
|
2012-07-22 18:48:55 +04:00
|
|
|
CSS_LWC_STRING_INTERN(iframe);
|
2012-07-23 15:06:43 +04:00
|
|
|
CSS_LWC_STRING_INTERN(image);
|
2012-07-22 18:48:55 +04:00
|
|
|
CSS_LWC_STRING_INTERN(img);
|
|
|
|
CSS_LWC_STRING_INTERN(input);
|
|
|
|
CSS_LWC_STRING_INTERN(justify);
|
|
|
|
CSS_LWC_STRING_INTERN(left);
|
2012-10-12 19:21:29 +04:00
|
|
|
CSS_LWC_STRING_INTERN(li);
|
2012-07-23 02:28:45 +04:00
|
|
|
CSS_LWC_STRING_INTERN(link);
|
2012-07-26 17:49:27 +04:00
|
|
|
CSS_LWC_STRING_INTERN(meta);
|
2012-07-22 18:48:55 +04:00
|
|
|
CSS_LWC_STRING_INTERN(middle);
|
2012-07-26 18:57:33 +04:00
|
|
|
CSS_LWC_STRING_INTERN(no);
|
2012-07-26 17:49:27 +04:00
|
|
|
CSS_LWC_STRING_INTERN(noscript);
|
2012-07-22 18:48:55 +04:00
|
|
|
CSS_LWC_STRING_INTERN(object);
|
2012-07-26 18:57:33 +04:00
|
|
|
CSS_LWC_STRING_INTERN(optgroup);
|
2012-07-26 21:27:15 +04:00
|
|
|
CSS_LWC_STRING_INTERN(option);
|
2012-07-22 18:48:55 +04:00
|
|
|
CSS_LWC_STRING_INTERN(p);
|
2012-07-26 18:57:33 +04:00
|
|
|
CSS_LWC_STRING_INTERN(param);
|
2012-07-22 18:48:55 +04:00
|
|
|
CSS_LWC_STRING_INTERN(password);
|
2012-07-22 23:52:34 +04:00
|
|
|
CSS_LWC_STRING_INTERN(poly);
|
|
|
|
CSS_LWC_STRING_INTERN(polygon);
|
2012-07-23 15:06:43 +04:00
|
|
|
CSS_LWC_STRING_INTERN(post);
|
|
|
|
CSS_LWC_STRING_INTERN(radio);
|
2012-07-22 23:52:34 +04:00
|
|
|
CSS_LWC_STRING_INTERN(rect);
|
|
|
|
CSS_LWC_STRING_INTERN(rectangle);
|
2012-07-26 17:49:27 +04:00
|
|
|
CSS_LWC_STRING_INTERN(refresh);
|
2012-07-23 15:06:43 +04:00
|
|
|
CSS_LWC_STRING_INTERN(reset);
|
2014-01-25 00:08:41 +04:00
|
|
|
CSS_LWC_STRING_INTERN(resource);
|
2012-07-22 18:48:55 +04:00
|
|
|
CSS_LWC_STRING_INTERN(right);
|
2012-11-04 21:29:26 +04:00
|
|
|
CSS_LWC_STRING_INTERN(search);
|
2012-09-19 17:42:05 +04:00
|
|
|
CSS_LWC_STRING_INTERN(select);
|
2012-07-26 18:57:33 +04:00
|
|
|
CSS_LWC_STRING_INTERN(src);
|
2012-07-26 17:49:27 +04:00
|
|
|
CSS_LWC_STRING_INTERN(style);
|
2012-07-23 15:06:43 +04:00
|
|
|
CSS_LWC_STRING_INTERN(submit);
|
2012-07-22 18:48:55 +04:00
|
|
|
CSS_LWC_STRING_INTERN(table);
|
|
|
|
CSS_LWC_STRING_INTERN(tbody);
|
|
|
|
CSS_LWC_STRING_INTERN(td);
|
|
|
|
CSS_LWC_STRING_INTERN(text);
|
|
|
|
CSS_LWC_STRING_INTERN(textarea);
|
|
|
|
CSS_LWC_STRING_INTERN(texttop);
|
|
|
|
CSS_LWC_STRING_INTERN(tfoot);
|
|
|
|
CSS_LWC_STRING_INTERN(th);
|
|
|
|
CSS_LWC_STRING_INTERN(thead);
|
2012-07-23 15:06:43 +04:00
|
|
|
CSS_LWC_STRING_INTERN(title);
|
2012-07-22 18:48:55 +04:00
|
|
|
CSS_LWC_STRING_INTERN(top);
|
|
|
|
CSS_LWC_STRING_INTERN(tr);
|
2012-10-12 19:21:29 +04:00
|
|
|
CSS_LWC_STRING_INTERN(ul);
|
2012-07-26 17:49:27 +04:00
|
|
|
CSS_LWC_STRING_INTERN(url);
|
2012-07-26 18:57:33 +04:00
|
|
|
CSS_LWC_STRING_INTERN(yes);
|
2012-07-23 02:28:45 +04:00
|
|
|
CSS_LWC_STRING_INTERN(_blank);
|
|
|
|
CSS_LWC_STRING_INTERN(_parent);
|
|
|
|
CSS_LWC_STRING_INTERN(_self);
|
|
|
|
CSS_LWC_STRING_INTERN(_top);
|
2012-07-22 18:48:55 +04:00
|
|
|
#undef CSS_LWC_STRING_INTERN
|
|
|
|
|
2012-07-26 18:57:33 +04:00
|
|
|
|
2012-07-23 15:06:43 +04:00
|
|
|
lerror = lwc_intern_string("multipart/form-data",
|
|
|
|
SLEN("multipart/form-data"),
|
|
|
|
&corestring_lwc_multipart_form_data);
|
|
|
|
if ((lerror != lwc_error_ok) ||
|
2012-10-11 17:21:13 +04:00
|
|
|
(corestring_lwc_multipart_form_data == NULL)) {
|
|
|
|
error = NSERROR_NOMEM;
|
2012-07-26 17:49:27 +04:00
|
|
|
goto error;
|
2012-10-11 17:21:13 +04:00
|
|
|
}
|
2012-07-26 17:49:27 +04:00
|
|
|
|
2014-01-25 03:13:18 +04:00
|
|
|
lerror = lwc_intern_string("shortcut icon", SLEN("shortcut icon"),
|
|
|
|
&corestring_lwc_shortcut_icon);
|
|
|
|
if ((lerror != lwc_error_ok) || (corestring_lwc_shortcut_icon == NULL)) {
|
|
|
|
error = NSERROR_NOMEM;
|
|
|
|
goto error;
|
|
|
|
}
|
|
|
|
|
2012-07-26 17:49:27 +04:00
|
|
|
lerror = lwc_intern_string("text/css", SLEN("text/css"),
|
|
|
|
&corestring_lwc_text_css);
|
2012-10-11 17:21:13 +04:00
|
|
|
if ((lerror != lwc_error_ok) || (corestring_lwc_text_css == NULL)) {
|
|
|
|
error = NSERROR_NOMEM;
|
2012-07-23 15:06:43 +04:00
|
|
|
goto error;
|
2012-10-11 17:21:13 +04:00
|
|
|
}
|
2012-07-23 15:06:43 +04:00
|
|
|
|
|
|
|
|
2012-07-22 18:48:55 +04:00
|
|
|
#define CSS_DOM_STRING_INTERN(NAME) \
|
|
|
|
do { \
|
|
|
|
exc = dom_string_create_interned( \
|
|
|
|
(const uint8_t *)#NAME, \
|
|
|
|
sizeof(#NAME) - 1, \
|
|
|
|
&corestring_dom_##NAME ); \
|
|
|
|
if ((exc != DOM_NO_ERR) || \
|
|
|
|
(corestring_dom_##NAME == NULL)) { \
|
|
|
|
error = NSERROR_NOMEM; \
|
|
|
|
goto error; \
|
|
|
|
} \
|
|
|
|
} while(0)
|
|
|
|
|
2012-07-22 23:52:34 +04:00
|
|
|
CSS_DOM_STRING_INTERN(a);
|
2012-11-28 21:19:49 +04:00
|
|
|
CSS_DOM_STRING_INTERN(abort);
|
|
|
|
CSS_DOM_STRING_INTERN(afterprint);
|
2012-07-22 18:48:55 +04:00
|
|
|
CSS_DOM_STRING_INTERN(align);
|
2014-01-24 22:58:12 +04:00
|
|
|
CSS_DOM_STRING_INTERN(alt);
|
2012-07-22 23:52:34 +04:00
|
|
|
CSS_DOM_STRING_INTERN(area);
|
2012-07-27 19:59:49 +04:00
|
|
|
CSS_DOM_STRING_INTERN(async);
|
2012-07-22 18:48:55 +04:00
|
|
|
CSS_DOM_STRING_INTERN(background);
|
2012-11-28 21:19:49 +04:00
|
|
|
CSS_DOM_STRING_INTERN(beforeprint);
|
|
|
|
CSS_DOM_STRING_INTERN(beforeunload);
|
2012-07-22 18:48:55 +04:00
|
|
|
CSS_DOM_STRING_INTERN(bgcolor);
|
2012-11-28 21:19:49 +04:00
|
|
|
CSS_DOM_STRING_INTERN(blur);
|
2012-07-22 18:48:55 +04:00
|
|
|
CSS_DOM_STRING_INTERN(border);
|
|
|
|
CSS_DOM_STRING_INTERN(bordercolor);
|
2012-11-28 21:19:49 +04:00
|
|
|
CSS_DOM_STRING_INTERN(cancel);
|
|
|
|
CSS_DOM_STRING_INTERN(canplay);
|
|
|
|
CSS_DOM_STRING_INTERN(canplaythrough);
|
2012-07-22 18:48:55 +04:00
|
|
|
CSS_DOM_STRING_INTERN(cellpadding);
|
|
|
|
CSS_DOM_STRING_INTERN(cellspacing);
|
2012-11-28 21:19:49 +04:00
|
|
|
CSS_DOM_STRING_INTERN(change);
|
2012-12-31 03:33:27 +04:00
|
|
|
CSS_DOM_STRING_INTERN(charset);
|
2013-01-23 21:00:13 +04:00
|
|
|
CSS_DOM_STRING_INTERN(class);
|
2014-01-24 22:58:12 +04:00
|
|
|
CSS_DOM_STRING_INTERN(classid);
|
2012-11-28 21:19:49 +04:00
|
|
|
CSS_DOM_STRING_INTERN(click);
|
|
|
|
CSS_DOM_STRING_INTERN(close);
|
2014-01-24 22:58:12 +04:00
|
|
|
CSS_DOM_STRING_INTERN(codebase);
|
2012-07-22 18:48:55 +04:00
|
|
|
CSS_DOM_STRING_INTERN(color);
|
|
|
|
CSS_DOM_STRING_INTERN(cols);
|
2014-01-24 22:58:12 +04:00
|
|
|
CSS_DOM_STRING_INTERN(colspan);
|
2012-07-23 02:28:45 +04:00
|
|
|
CSS_DOM_STRING_INTERN(content);
|
2012-11-28 21:19:49 +04:00
|
|
|
CSS_DOM_STRING_INTERN(contextmenu);
|
2012-07-22 23:52:34 +04:00
|
|
|
CSS_DOM_STRING_INTERN(coords);
|
2012-11-28 21:19:49 +04:00
|
|
|
CSS_DOM_STRING_INTERN(cuechange);
|
2014-01-24 22:58:12 +04:00
|
|
|
CSS_DOM_STRING_INTERN(data);
|
2012-11-28 21:19:49 +04:00
|
|
|
CSS_DOM_STRING_INTERN(dblclick);
|
2012-07-27 19:59:49 +04:00
|
|
|
CSS_DOM_STRING_INTERN(defer);
|
2013-02-20 03:51:16 +04:00
|
|
|
CSS_DOM_STRING_INTERN(DOMAttrModified);
|
|
|
|
CSS_DOM_STRING_INTERN(DOMNodeInserted);
|
|
|
|
CSS_DOM_STRING_INTERN(DOMNodeInsertedIntoDocument);
|
|
|
|
CSS_DOM_STRING_INTERN(DOMSubtreeModified);
|
2012-11-28 21:19:49 +04:00
|
|
|
CSS_DOM_STRING_INTERN(drag);
|
|
|
|
CSS_DOM_STRING_INTERN(dragend);
|
|
|
|
CSS_DOM_STRING_INTERN(dragenter);
|
|
|
|
CSS_DOM_STRING_INTERN(dragleave);
|
|
|
|
CSS_DOM_STRING_INTERN(dragover);
|
|
|
|
CSS_DOM_STRING_INTERN(dragstart);
|
|
|
|
CSS_DOM_STRING_INTERN(drop);
|
|
|
|
CSS_DOM_STRING_INTERN(durationchange);
|
|
|
|
CSS_DOM_STRING_INTERN(emptied);
|
|
|
|
CSS_DOM_STRING_INTERN(ended);
|
|
|
|
CSS_DOM_STRING_INTERN(error);
|
|
|
|
CSS_DOM_STRING_INTERN(focus);
|
2014-01-24 22:58:12 +04:00
|
|
|
CSS_DOM_STRING_INTERN(frameborder);
|
2012-11-28 21:19:49 +04:00
|
|
|
CSS_DOM_STRING_INTERN(hashchange);
|
2012-07-22 18:48:55 +04:00
|
|
|
CSS_DOM_STRING_INTERN(height);
|
|
|
|
CSS_DOM_STRING_INTERN(href);
|
2012-07-23 02:28:45 +04:00
|
|
|
CSS_DOM_STRING_INTERN(hreflang);
|
2012-07-22 18:48:55 +04:00
|
|
|
CSS_DOM_STRING_INTERN(hspace);
|
2013-01-03 04:33:36 +04:00
|
|
|
/* http-equiv: see below */
|
2012-07-22 23:52:34 +04:00
|
|
|
CSS_DOM_STRING_INTERN(id);
|
2012-11-28 21:19:49 +04:00
|
|
|
CSS_DOM_STRING_INTERN(input);
|
|
|
|
CSS_DOM_STRING_INTERN(invalid);
|
|
|
|
CSS_DOM_STRING_INTERN(keydown);
|
|
|
|
CSS_DOM_STRING_INTERN(keypress);
|
|
|
|
CSS_DOM_STRING_INTERN(keyup);
|
2012-07-22 18:48:55 +04:00
|
|
|
CSS_DOM_STRING_INTERN(link);
|
2012-11-28 21:19:49 +04:00
|
|
|
CSS_DOM_STRING_INTERN(load);
|
|
|
|
CSS_DOM_STRING_INTERN(loadeddata);
|
|
|
|
CSS_DOM_STRING_INTERN(loadedmetadata);
|
|
|
|
CSS_DOM_STRING_INTERN(loadstart);
|
2012-07-22 23:52:34 +04:00
|
|
|
CSS_DOM_STRING_INTERN(map);
|
2014-01-24 22:58:12 +04:00
|
|
|
CSS_DOM_STRING_INTERN(marginheight);
|
|
|
|
CSS_DOM_STRING_INTERN(marginwidth);
|
2012-07-23 02:28:45 +04:00
|
|
|
CSS_DOM_STRING_INTERN(media);
|
2012-11-28 21:19:49 +04:00
|
|
|
CSS_DOM_STRING_INTERN(message);
|
|
|
|
CSS_DOM_STRING_INTERN(mousedown);
|
|
|
|
CSS_DOM_STRING_INTERN(mousemove);
|
|
|
|
CSS_DOM_STRING_INTERN(mouseout);
|
|
|
|
CSS_DOM_STRING_INTERN(mouseover);
|
|
|
|
CSS_DOM_STRING_INTERN(mouseup);
|
|
|
|
CSS_DOM_STRING_INTERN(mousewheel);
|
2012-07-22 23:52:34 +04:00
|
|
|
CSS_DOM_STRING_INTERN(name);
|
|
|
|
CSS_DOM_STRING_INTERN(nohref);
|
2014-01-24 22:58:12 +04:00
|
|
|
CSS_DOM_STRING_INTERN(noresize);
|
2012-11-28 21:19:49 +04:00
|
|
|
CSS_DOM_STRING_INTERN(offline);
|
|
|
|
CSS_DOM_STRING_INTERN(online);
|
|
|
|
CSS_DOM_STRING_INTERN(pagehide);
|
|
|
|
CSS_DOM_STRING_INTERN(pageshow);
|
|
|
|
CSS_DOM_STRING_INTERN(pause);
|
|
|
|
CSS_DOM_STRING_INTERN(play);
|
|
|
|
CSS_DOM_STRING_INTERN(playing);
|
|
|
|
CSS_DOM_STRING_INTERN(popstate);
|
|
|
|
CSS_DOM_STRING_INTERN(progress);
|
|
|
|
CSS_DOM_STRING_INTERN(ratechange);
|
2012-12-17 18:55:16 +04:00
|
|
|
CSS_DOM_STRING_INTERN(readystatechange);
|
2012-07-22 23:52:34 +04:00
|
|
|
CSS_DOM_STRING_INTERN(rect);
|
2012-07-23 02:28:45 +04:00
|
|
|
CSS_DOM_STRING_INTERN(rel);
|
2012-11-28 21:19:49 +04:00
|
|
|
CSS_DOM_STRING_INTERN(reset);
|
|
|
|
CSS_DOM_STRING_INTERN(resize);
|
2012-07-22 18:48:55 +04:00
|
|
|
CSS_DOM_STRING_INTERN(rows);
|
2014-01-24 22:58:12 +04:00
|
|
|
CSS_DOM_STRING_INTERN(rowspan);
|
2012-11-28 21:19:49 +04:00
|
|
|
CSS_DOM_STRING_INTERN(scroll);
|
2014-01-24 22:58:12 +04:00
|
|
|
CSS_DOM_STRING_INTERN(scrolling);
|
2012-11-28 21:19:49 +04:00
|
|
|
CSS_DOM_STRING_INTERN(seeked);
|
|
|
|
CSS_DOM_STRING_INTERN(seeking);
|
|
|
|
CSS_DOM_STRING_INTERN(select);
|
2014-01-24 22:58:12 +04:00
|
|
|
CSS_DOM_STRING_INTERN(selected);
|
2012-11-28 21:19:49 +04:00
|
|
|
CSS_DOM_STRING_INTERN(shape);
|
|
|
|
CSS_DOM_STRING_INTERN(show);
|
2012-07-22 18:48:55 +04:00
|
|
|
CSS_DOM_STRING_INTERN(size);
|
2012-07-23 02:28:45 +04:00
|
|
|
CSS_DOM_STRING_INTERN(sizes);
|
2012-07-22 21:58:22 +04:00
|
|
|
CSS_DOM_STRING_INTERN(src);
|
2012-11-28 21:19:49 +04:00
|
|
|
CSS_DOM_STRING_INTERN(stalled);
|
|
|
|
CSS_DOM_STRING_INTERN(storage);
|
2013-02-20 03:51:16 +04:00
|
|
|
CSS_DOM_STRING_INTERN(style);
|
2012-11-28 21:19:49 +04:00
|
|
|
CSS_DOM_STRING_INTERN(submit);
|
|
|
|
CSS_DOM_STRING_INTERN(suspend);
|
2012-07-22 23:52:34 +04:00
|
|
|
CSS_DOM_STRING_INTERN(target);
|
2012-07-22 18:48:55 +04:00
|
|
|
CSS_DOM_STRING_INTERN(text);
|
2012-11-28 21:19:49 +04:00
|
|
|
CSS_DOM_STRING_INTERN(timeupdate);
|
2014-01-24 22:58:12 +04:00
|
|
|
CSS_DOM_STRING_INTERN(title);
|
2012-07-22 18:48:55 +04:00
|
|
|
CSS_DOM_STRING_INTERN(type);
|
2012-11-28 21:19:49 +04:00
|
|
|
CSS_DOM_STRING_INTERN(unload);
|
2012-07-22 18:48:55 +04:00
|
|
|
CSS_DOM_STRING_INTERN(valign);
|
2014-01-24 22:58:12 +04:00
|
|
|
CSS_DOM_STRING_INTERN(value);
|
2012-07-22 18:48:55 +04:00
|
|
|
CSS_DOM_STRING_INTERN(vlink);
|
2012-11-28 21:19:49 +04:00
|
|
|
CSS_DOM_STRING_INTERN(volumechange);
|
2012-07-22 18:48:55 +04:00
|
|
|
CSS_DOM_STRING_INTERN(vspace);
|
2012-11-28 21:19:49 +04:00
|
|
|
CSS_DOM_STRING_INTERN(waiting);
|
2012-07-22 18:48:55 +04:00
|
|
|
CSS_DOM_STRING_INTERN(width);
|
2014-01-05 19:50:23 +04:00
|
|
|
/* DOM node names, not really CSS */
|
|
|
|
CSS_DOM_STRING_INTERN(BUTTON);
|
|
|
|
CSS_DOM_STRING_INTERN(INPUT);
|
|
|
|
CSS_DOM_STRING_INTERN(SELECT);
|
|
|
|
CSS_DOM_STRING_INTERN(TEXTAREA);
|
|
|
|
/* DOM input types, not really CSS */
|
|
|
|
CSS_DOM_STRING_INTERN(button);
|
|
|
|
CSS_DOM_STRING_INTERN(image);
|
|
|
|
CSS_DOM_STRING_INTERN(radio);
|
|
|
|
CSS_DOM_STRING_INTERN(checkbox);
|
|
|
|
CSS_DOM_STRING_INTERN(file);
|
|
|
|
CSS_DOM_STRING_INTERN(on);
|
|
|
|
/* DOM userdata keys, not really CSS */
|
2014-01-24 22:58:12 +04:00
|
|
|
CSS_DOM_STRING_INTERN(__ns_key_box_node_data);
|
2013-12-14 03:02:15 +04:00
|
|
|
CSS_DOM_STRING_INTERN(__ns_key_libcss_node_data);
|
2014-01-04 20:30:52 +04:00
|
|
|
CSS_DOM_STRING_INTERN(__ns_key_file_name_node_data);
|
2014-01-05 20:14:17 +04:00
|
|
|
CSS_DOM_STRING_INTERN(__ns_key_image_coords_node_data);
|
2012-07-22 18:48:55 +04:00
|
|
|
#undef CSS_DOM_STRING_INTERN
|
|
|
|
|
2012-07-22 23:52:34 +04:00
|
|
|
exc = dom_string_create_interned((const uint8_t *) "text/javascript",
|
|
|
|
SLEN("text/javascript"),
|
|
|
|
&corestring_dom_text_javascript);
|
2012-10-11 17:21:13 +04:00
|
|
|
if ((exc != DOM_NO_ERR) || (corestring_dom_text_javascript == NULL)) {
|
|
|
|
error = NSERROR_NOMEM;
|
2012-07-22 23:52:34 +04:00
|
|
|
goto error;
|
2012-10-11 17:21:13 +04:00
|
|
|
}
|
2012-07-22 23:52:34 +04:00
|
|
|
|
2012-07-23 02:28:45 +04:00
|
|
|
exc = dom_string_create_interned((const uint8_t *) "http-equiv",
|
|
|
|
SLEN("http-equiv"),
|
|
|
|
&corestring_dom_http_equiv);
|
2012-10-11 17:21:13 +04:00
|
|
|
if ((exc != DOM_NO_ERR) || (corestring_dom_http_equiv == NULL)) {
|
|
|
|
error = NSERROR_NOMEM;
|
2012-07-23 02:28:45 +04:00
|
|
|
goto error;
|
2012-10-11 17:21:13 +04:00
|
|
|
}
|
2012-07-23 02:28:45 +04:00
|
|
|
|
2014-02-08 19:00:08 +04:00
|
|
|
error = nsurl_create("about:blank", &corestring_nsurl_about_blank);
|
|
|
|
if (error != NSERROR_OK) {
|
|
|
|
goto error;
|
|
|
|
}
|
|
|
|
|
2012-07-22 18:48:55 +04:00
|
|
|
return NSERROR_OK;
|
|
|
|
|
|
|
|
error:
|
|
|
|
corestrings_fini();
|
|
|
|
|
|
|
|
return error;
|
|
|
|
}
|