mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-11-28 09:13:08 +03:00
Merge branch 'master' of git://git.netsurf-browser.org/netsurf
This commit is contained in:
commit
65ea98ba60
@ -3,11 +3,10 @@
|
|||||||
<head>
|
<head>
|
||||||
<title>Welcome to NetSurf</title>
|
<title>Welcome to NetSurf</title>
|
||||||
<style type="text/css">html,body{margin:0;padding:0;}body{color:#000;background:#fff;font-family:sans-serif;margin:0 auto;}a:link{text-decoration:underline;color:#00f;}a:visited{text-decoration:underline;color:#60a;}a:hover{text-decoration:none;}a:active{text-decoration:underline;color:#f00;}.banner{margin:0;padding:0;background:#94adff;text-align:left;}.banner img{border:none;color:#000;height:86px;width:308px;display:block;}.onlycontent{margin:0 1em;}.nslinks{display:table;width:100%;margin:0;border-spacing:0;padding:0;background:#ccd8ff;font-size:94%;}.nslinks li{display:table-cell;text-align:center;padding:0.2em 0.3em 0.3em;vertical-align:middle;}.nslinks li+li{border-left:2px solid #b1c3ff;}.version{padding:0;margin:1.2em auto 0;width:90%;color:#444;font-size:160%;}.intro{width: 90%;margin:1em auto;color:#666;}.websearch{margin:1.5em auto;padding:1.2em 0.3em;background:#d8e2ff;border:2px solid #c5d3ff;width:80%;text-align:center;}input[type=text]{border:2px solid #b6c7ff;background:#f9faff;color:#000;margin:2px;}input[type=submit]{border:2px outset #cedaff;color:#000;background:#cedaff;margin:2px;}.links{display:table;width:80%;margin:0 auto 3em;font-size:94%;}.links ul{display:table-cell;padding-left:2.5em;}.links ul+ul{padding-left:1em;}.footer{font-style:italic;color:#666;text-align:right;}.footer p{margin-top:1.5em;padding-top:0.4em;border-top:2px solid #94adff;}</style>
|
<style type="text/css">html,body{margin:0;padding:0;}body{color:#000;background:#fff;font-family:sans-serif;margin:0 auto;}a:link{text-decoration:underline;color:#00f;}a:visited{text-decoration:underline;color:#60a;}a:hover{text-decoration:none;}a:active{text-decoration:underline;color:#f00;}.banner{margin:0;padding:0;background:#94adff;text-align:left;}.banner img{border:none;color:#000;height:86px;width:308px;display:block;}.onlycontent{margin:0 1em;}.nslinks{display:table;width:100%;margin:0;border-spacing:0;padding:0;background:#ccd8ff;font-size:94%;}.nslinks li{display:table-cell;text-align:center;padding:0.2em 0.3em 0.3em;vertical-align:middle;}.nslinks li+li{border-left:2px solid #b1c3ff;}.version{padding:0;margin:1.2em auto 0;width:90%;color:#444;font-size:160%;}.intro{width: 90%;margin:1em auto;color:#666;}.websearch{margin:1.5em auto;padding:1.2em 0.3em;background:#d8e2ff;border:2px solid #c5d3ff;width:80%;text-align:center;}input[type=text]{border:2px solid #b6c7ff;background:#f9faff;color:#000;margin:2px;}input[type=submit]{border:2px outset #cedaff;color:#000;background:#cedaff;margin:2px;}.links{display:table;width:80%;margin:0 auto 3em;font-size:94%;}.links ul{display:table-cell;padding-left:2.5em;}.links ul+ul{padding-left:1em;}.footer{font-style:italic;color:#666;text-align:right;}.footer p{margin-top:1.5em;padding-top:0.4em;border-top:2px solid #94adff;}</style>
|
||||||
<link rel="icon" type="image_png" href="http://www.netsurf-browser.org/webimages/favicon_png">
|
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
<h1 class="banner"><a href="http://www.netsurf-browser.org/"><img src="/netsurf.png" alt="NetSurf"></a></h1>
|
<h1 class="banner"><a href="http://www.netsurf-browser.org/"><img src="about:logo" alt="NetSurf"></a></h1>
|
||||||
|
|
||||||
<ul class="nslinks">
|
<ul class="nslinks">
|
||||||
<li><a href="http://www.netsurf-browser.org/">NetSurf Website</a></li>
|
<li><a href="http://www.netsurf-browser.org/">NetSurf Website</a></li>
|
||||||
|
@ -3,7 +3,6 @@
|
|||||||
<head>
|
<head>
|
||||||
<title>Welcome to NetSurf</title>
|
<title>Welcome to NetSurf</title>
|
||||||
<style type="text/css">html,body{margin:0;padding:0;}body{color:#000;background:#fff;font-family:sans-serif;margin:0 auto;}a:link{text-decoration:underline;color:#00f;}a:visited{text-decoration:underline;color:#60a;}a:hover{text-decoration:none;}a:active{text-decoration:underline;color:#f00;}.banner{margin:0;padding:0;background:#94adff;text-align:left;}.banner img{border:none;color:#000;height:86px;width:308px;display:block;}.onlycontent{margin:0 1em;}.nslinks{display:table;width:100%;margin:0;border-spacing:0;padding:0;background:#ccd8ff;font-size:94%;}.nslinks li{display:table-cell;text-align:center;padding:0.2em 0.3em 0.3em;vertical-align:middle;}.nslinks li+li{border-left:2px solid #b1c3ff;}.version{padding:0;margin:1.2em auto 0;width:90%;color:#444;font-size:160%;}.intro{width: 90%;margin:1em auto;color:#666;}.websearch{margin:1.5em auto;padding:1.2em 0.3em;background:#d8e2ff;border:2px solid #c5d3ff;width:80%;text-align:center;}input[type=text]{border:2px solid #b6c7ff;background:#f9faff;color:#000;margin:2px;}input[type=submit]{border:2px outset #cedaff;color:#000;background:#cedaff;margin:2px;}.links{display:table;width:80%;margin:0 auto 3em;font-size:94%;}.links ul{display:table-cell;padding-left:2.5em;}.links ul+ul{padding-left:1em;}.footer{font-style:italic;color:#666;text-align:right;}.footer p{margin-top:1.5em;padding-top:0.4em;border-top:2px solid #94adff;}</style>
|
<style type="text/css">html,body{margin:0;padding:0;}body{color:#000;background:#fff;font-family:sans-serif;margin:0 auto;}a:link{text-decoration:underline;color:#00f;}a:visited{text-decoration:underline;color:#60a;}a:hover{text-decoration:none;}a:active{text-decoration:underline;color:#f00;}.banner{margin:0;padding:0;background:#94adff;text-align:left;}.banner img{border:none;color:#000;height:86px;width:308px;display:block;}.onlycontent{margin:0 1em;}.nslinks{display:table;width:100%;margin:0;border-spacing:0;padding:0;background:#ccd8ff;font-size:94%;}.nslinks li{display:table-cell;text-align:center;padding:0.2em 0.3em 0.3em;vertical-align:middle;}.nslinks li+li{border-left:2px solid #b1c3ff;}.version{padding:0;margin:1.2em auto 0;width:90%;color:#444;font-size:160%;}.intro{width: 90%;margin:1em auto;color:#666;}.websearch{margin:1.5em auto;padding:1.2em 0.3em;background:#d8e2ff;border:2px solid #c5d3ff;width:80%;text-align:center;}input[type=text]{border:2px solid #b6c7ff;background:#f9faff;color:#000;margin:2px;}input[type=submit]{border:2px outset #cedaff;color:#000;background:#cedaff;margin:2px;}.links{display:table;width:80%;margin:0 auto 3em;font-size:94%;}.links ul{display:table-cell;padding-left:2.5em;}.links ul+ul{padding-left:1em;}.footer{font-style:italic;color:#666;text-align:right;}.footer p{margin-top:1.5em;padding-top:0.4em;border-top:2px solid #94adff;}</style>
|
||||||
<link rel="icon" type="image/png" href="/webimages/favicon.png">
|
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
|
@ -3,11 +3,10 @@
|
|||||||
<head>
|
<head>
|
||||||
<title>Benvenuti su NetSurf</title>
|
<title>Benvenuti su NetSurf</title>
|
||||||
<style type="text/css">html,body{margin:0;padding:0;}body{color:#000;background:#fff;font-family:sans-serif;margin:0 auto;}a:link{text-decoration:underline;color:#00f;}a:visited{text-decoration:underline;color:#60a;}a:hover{text-decoration:none;}a:active{text-decoration:underline;color:#f00;}.banner{margin:0;padding:0;background:#94adff;text-align:left;}.banner img{border:none;color:#000;height:86px;width:308px;display:block;}.onlycontent{margin:0 1em;}.nslinks{display:table;width:100%;margin:0;border-spacing:0;padding:0;background:#ccd8ff;font-size:94%;}.nslinks li{display:table-cell;text-align:center;padding:0.2em 0.3em 0.3em;vertical-align:middle;}.nslinks li+li{border-left:2px solid #b1c3ff;}.version{padding:0;margin:1.2em auto 0;width:90%;color:#444;font-size:160%;}.intro{width: 90%;margin:1em auto;color:#666;}.websearch{margin:1.5em auto;padding:1.2em 0.3em;background:#d8e2ff;border:2px solid #c5d3ff;width:80%;text-align:center;}input[type=text]{border:2px solid #b6c7ff;background:#f9faff;color:#000;margin:2px;}input[type=submit]{border:2px outset #cedaff;color:#000;background:#cedaff;margin:2px;}.links{display:table;width:80%;margin:0 auto 3em;font-size:94%;}.links ul{display:table-cell;padding-left:2.5em;}.links ul+ul{padding-left:1em;}.footer{font-style:italic;color:#666;text-align:right;}.footer p{margin-top:1.5em;padding-top:0.4em;border-top:2px solid #94adff;}</style>
|
<style type="text/css">html,body{margin:0;padding:0;}body{color:#000;background:#fff;font-family:sans-serif;margin:0 auto;}a:link{text-decoration:underline;color:#00f;}a:visited{text-decoration:underline;color:#60a;}a:hover{text-decoration:none;}a:active{text-decoration:underline;color:#f00;}.banner{margin:0;padding:0;background:#94adff;text-align:left;}.banner img{border:none;color:#000;height:86px;width:308px;display:block;}.onlycontent{margin:0 1em;}.nslinks{display:table;width:100%;margin:0;border-spacing:0;padding:0;background:#ccd8ff;font-size:94%;}.nslinks li{display:table-cell;text-align:center;padding:0.2em 0.3em 0.3em;vertical-align:middle;}.nslinks li+li{border-left:2px solid #b1c3ff;}.version{padding:0;margin:1.2em auto 0;width:90%;color:#444;font-size:160%;}.intro{width: 90%;margin:1em auto;color:#666;}.websearch{margin:1.5em auto;padding:1.2em 0.3em;background:#d8e2ff;border:2px solid #c5d3ff;width:80%;text-align:center;}input[type=text]{border:2px solid #b6c7ff;background:#f9faff;color:#000;margin:2px;}input[type=submit]{border:2px outset #cedaff;color:#000;background:#cedaff;margin:2px;}.links{display:table;width:80%;margin:0 auto 3em;font-size:94%;}.links ul{display:table-cell;padding-left:2.5em;}.links ul+ul{padding-left:1em;}.footer{font-style:italic;color:#666;text-align:right;}.footer p{margin-top:1.5em;padding-top:0.4em;border-top:2px solid #94adff;}</style>
|
||||||
<link rel="icon" type="image/png" href="/webimages/favicon.png">
|
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
<h1 class="banner"><a href="http://www.netsurf-browser.org/"><img src="/netsurf.png" alt="NetSurf"></a></h1>
|
<h1 class="banner"><a href="http://www.netsurf-browser.org/"><img src="about:logo" alt="NetSurf"></a></h1>
|
||||||
|
|
||||||
<ul class="nslinks">
|
<ul class="nslinks">
|
||||||
<li><a href="http://www.netsurf-browser.org/">Pagina principale</a></li>
|
<li><a href="http://www.netsurf-browser.org/">Pagina principale</a></li>
|
||||||
|
@ -4,11 +4,10 @@
|
|||||||
<meta http-equiv="content-type" content="text/html; charset=utf-8">
|
<meta http-equiv="content-type" content="text/html; charset=utf-8">
|
||||||
<title>NetSurfへようこそ</title>
|
<title>NetSurfへようこそ</title>
|
||||||
<style type="text/css">html,body{margin:0;padding:0;}body{color:#000;background:#fff;font-family:sans-serif;margin:0 auto;}a:link{text-decoration:underline;color:#00f;}a:visited{text-decoration:underline;color:#60a;}a:hover{text-decoration:none;}a:active{text-decoration:underline;color:#f00;}.banner{margin:0;padding:0;background:#94adff;text-align:left;}.banner img{border:none;color:#000;height:86px;width:308px;display:block;}.onlycontent{margin:0 1em;}.nslinks{display:table;width:100%;margin:0;border-spacing:0;padding:0;background:#ccd8ff;font-size:94%;}.nslinks li{display:table-cell;text-align:center;padding:0.2em 0.3em 0.3em;vertical-align:middle;}.nslinks li+li{border-left:2px solid #b1c3ff;}.version{padding:0;margin:1.2em auto 0;width:90%;color:#444;font-size:160%;}.intro{width: 90%;margin:1em auto;color:#666;}.websearch{margin:1.5em auto;padding:1.2em 0.3em;background:#d8e2ff;border:2px solid #c5d3ff;width:80%;text-align:center;}input[type=text]{border:2px solid #b6c7ff;background:#f9faff;color:#000;margin:2px;}input[type=submit]{border:2px outset #cedaff;color:#000;background:#cedaff;margin:2px;}.links{display:table;width:80%;margin:0 auto 3em;font-size:94%;}.links ul{display:table-cell;padding-left:2.5em;}.links ul+ul{padding-left:1em;}.footer{font-style:italic;color:#666;text-align:right;}.footer p{margin-top:1.5em;padding-top:0.4em;border-top:2px solid #94adff;}</style>
|
<style type="text/css">html,body{margin:0;padding:0;}body{color:#000;background:#fff;font-family:sans-serif;margin:0 auto;}a:link{text-decoration:underline;color:#00f;}a:visited{text-decoration:underline;color:#60a;}a:hover{text-decoration:none;}a:active{text-decoration:underline;color:#f00;}.banner{margin:0;padding:0;background:#94adff;text-align:left;}.banner img{border:none;color:#000;height:86px;width:308px;display:block;}.onlycontent{margin:0 1em;}.nslinks{display:table;width:100%;margin:0;border-spacing:0;padding:0;background:#ccd8ff;font-size:94%;}.nslinks li{display:table-cell;text-align:center;padding:0.2em 0.3em 0.3em;vertical-align:middle;}.nslinks li+li{border-left:2px solid #b1c3ff;}.version{padding:0;margin:1.2em auto 0;width:90%;color:#444;font-size:160%;}.intro{width: 90%;margin:1em auto;color:#666;}.websearch{margin:1.5em auto;padding:1.2em 0.3em;background:#d8e2ff;border:2px solid #c5d3ff;width:80%;text-align:center;}input[type=text]{border:2px solid #b6c7ff;background:#f9faff;color:#000;margin:2px;}input[type=submit]{border:2px outset #cedaff;color:#000;background:#cedaff;margin:2px;}.links{display:table;width:80%;margin:0 auto 3em;font-size:94%;}.links ul{display:table-cell;padding-left:2.5em;}.links ul+ul{padding-left:1em;}.footer{font-style:italic;color:#666;text-align:right;}.footer p{margin-top:1.5em;padding-top:0.4em;border-top:2px solid #94adff;}</style>
|
||||||
<link rel="icon" type="image/png" href="/webimages/favicon.png">
|
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
<h1 class="banner"><a href="http://www.netsurf-browser.org/"><img src="/netsurf.png" alt="NetSurf"></a></h1>
|
<h1 class="banner"><a href="http://www.netsurf-browser.org/"><img src="about:logo" alt="NetSurf"></a></h1>
|
||||||
|
|
||||||
<ul class="nslinks">
|
<ul class="nslinks">
|
||||||
<li><a href="http://www.netsurf-browser.org/">NetSurfウェブサイト</a></li>
|
<li><a href="http://www.netsurf-browser.org/">NetSurfウェブサイト</a></li>
|
||||||
|
148
css/select.c
148
css/select.c
@ -1515,7 +1515,7 @@ css_error node_is_link(void *pw, void *n, bool *match)
|
|||||||
return CSS_NOMEM;
|
return CSS_NOMEM;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (dom_string_isequal(node_name, nscss_dom_string_a)) {
|
if (dom_string_caseless_isequal(node_name, nscss_dom_string_a)) {
|
||||||
bool has_href;
|
bool has_href;
|
||||||
exc = dom_element_has_attribute(node, nscss_dom_string_href, &has_href);
|
exc = dom_element_has_attribute(node, nscss_dom_string_href, &has_href);
|
||||||
if ((exc == DOM_NO_ERR) && (has_href)) {
|
if ((exc == DOM_NO_ERR) && (has_href)) {
|
||||||
@ -1751,13 +1751,13 @@ node_presentational_hint_vertical_align(nscss_select_ctx *ctx,
|
|||||||
if (err != DOM_NO_ERR)
|
if (err != DOM_NO_ERR)
|
||||||
return CSS_PROPERTY_NOT_SET;
|
return CSS_PROPERTY_NOT_SET;
|
||||||
|
|
||||||
if (dom_string_isequal(name, nscss_dom_string_col) ||
|
if (dom_string_caseless_isequal(name, nscss_dom_string_col) ||
|
||||||
dom_string_isequal(name, nscss_dom_string_thead) ||
|
dom_string_caseless_isequal(name, nscss_dom_string_thead) ||
|
||||||
dom_string_isequal(name, nscss_dom_string_tbody) ||
|
dom_string_caseless_isequal(name, nscss_dom_string_tbody) ||
|
||||||
dom_string_isequal(name, nscss_dom_string_tfoot) ||
|
dom_string_caseless_isequal(name, nscss_dom_string_tfoot) ||
|
||||||
dom_string_isequal(name, nscss_dom_string_tr) ||
|
dom_string_caseless_isequal(name, nscss_dom_string_tr) ||
|
||||||
dom_string_isequal(name, nscss_dom_string_td) ||
|
dom_string_caseless_isequal(name, nscss_dom_string_td) ||
|
||||||
dom_string_isequal(name, nscss_dom_string_th)) {
|
dom_string_caseless_isequal(name, nscss_dom_string_th)) {
|
||||||
err = dom_element_get_attribute(node,
|
err = dom_element_get_attribute(node,
|
||||||
nscss_dom_string_valign, &valign);
|
nscss_dom_string_valign, &valign);
|
||||||
if (err != DOM_NO_ERR || valign == NULL) {
|
if (err != DOM_NO_ERR || valign == NULL) {
|
||||||
@ -1786,11 +1786,11 @@ node_presentational_hint_vertical_align(nscss_select_ctx *ctx,
|
|||||||
dom_string_unref(name);
|
dom_string_unref(name);
|
||||||
|
|
||||||
return CSS_OK;
|
return CSS_OK;
|
||||||
} else if (dom_string_isequal(name, nscss_dom_string_applet) ||
|
} else if (dom_string_caseless_isequal(name, nscss_dom_string_applet) ||
|
||||||
dom_string_isequal(name, nscss_dom_string_embed) ||
|
dom_string_caseless_isequal(name, nscss_dom_string_embed) ||
|
||||||
dom_string_isequal(name, nscss_dom_string_iframe) ||
|
dom_string_caseless_isequal(name, nscss_dom_string_iframe) ||
|
||||||
dom_string_isequal(name, nscss_dom_string_img) ||
|
dom_string_caseless_isequal(name, nscss_dom_string_img) ||
|
||||||
dom_string_isequal(name, nscss_dom_string_object)) {
|
dom_string_caseless_isequal(name, nscss_dom_string_object)) {
|
||||||
/** \todo input[type=image][align=*] - $11.3.3 */
|
/** \todo input[type=image][align=*] - $11.3.3 */
|
||||||
err = dom_element_get_attribute(node,
|
err = dom_element_get_attribute(node,
|
||||||
nscss_dom_string_align, &valign);
|
nscss_dom_string_align, &valign);
|
||||||
@ -1843,13 +1843,13 @@ node_presentational_hint_text_align(nscss_select_ctx *ctx,
|
|||||||
if (err != DOM_NO_ERR)
|
if (err != DOM_NO_ERR)
|
||||||
return CSS_PROPERTY_NOT_SET;
|
return CSS_PROPERTY_NOT_SET;
|
||||||
|
|
||||||
if (dom_string_isequal(name, nscss_dom_string_p) ||
|
if (dom_string_caseless_isequal(name, nscss_dom_string_p) ||
|
||||||
dom_string_isequal(name, nscss_dom_string_h1) ||
|
dom_string_caseless_isequal(name, nscss_dom_string_h1) ||
|
||||||
dom_string_isequal(name, nscss_dom_string_h2) ||
|
dom_string_caseless_isequal(name, nscss_dom_string_h2) ||
|
||||||
dom_string_isequal(name, nscss_dom_string_h3) ||
|
dom_string_caseless_isequal(name, nscss_dom_string_h3) ||
|
||||||
dom_string_isequal(name, nscss_dom_string_h4) ||
|
dom_string_caseless_isequal(name, nscss_dom_string_h4) ||
|
||||||
dom_string_isequal(name, nscss_dom_string_h5) ||
|
dom_string_caseless_isequal(name, nscss_dom_string_h5) ||
|
||||||
dom_string_isequal(name, nscss_dom_string_h6)) {
|
dom_string_caseless_isequal(name, nscss_dom_string_h6)) {
|
||||||
err = dom_element_get_attribute(node,
|
err = dom_element_get_attribute(node,
|
||||||
nscss_dom_string_align, &align);
|
nscss_dom_string_align, &align);
|
||||||
if (err != DOM_NO_ERR || align == NULL) {
|
if (err != DOM_NO_ERR || align == NULL) {
|
||||||
@ -1878,13 +1878,13 @@ node_presentational_hint_text_align(nscss_select_ctx *ctx,
|
|||||||
dom_string_unref(name);
|
dom_string_unref(name);
|
||||||
|
|
||||||
return CSS_OK;
|
return CSS_OK;
|
||||||
} else if (dom_string_isequal(name, nscss_dom_string_center)) {
|
} else if (dom_string_caseless_isequal(name, nscss_dom_string_center)) {
|
||||||
hint->status = CSS_TEXT_ALIGN_LIBCSS_CENTER;
|
hint->status = CSS_TEXT_ALIGN_LIBCSS_CENTER;
|
||||||
|
|
||||||
dom_string_unref(name);
|
dom_string_unref(name);
|
||||||
|
|
||||||
return CSS_OK;
|
return CSS_OK;
|
||||||
} else if (dom_string_isequal(name, nscss_dom_string_caption)) {
|
} else if (dom_string_caseless_isequal(name, nscss_dom_string_caption)) {
|
||||||
err = dom_element_get_attribute(node,
|
err = dom_element_get_attribute(node,
|
||||||
nscss_dom_string_align, &align);
|
nscss_dom_string_align, &align);
|
||||||
if (err != DOM_NO_ERR) {
|
if (err != DOM_NO_ERR) {
|
||||||
@ -1915,13 +1915,13 @@ node_presentational_hint_text_align(nscss_select_ctx *ctx,
|
|||||||
dom_string_unref(name);
|
dom_string_unref(name);
|
||||||
|
|
||||||
return CSS_OK;
|
return CSS_OK;
|
||||||
} else if (dom_string_isequal(name, nscss_dom_string_div) ||
|
} else if (dom_string_caseless_isequal(name, nscss_dom_string_div) ||
|
||||||
dom_string_isequal(name, nscss_dom_string_thead) ||
|
dom_string_caseless_isequal(name, nscss_dom_string_thead) ||
|
||||||
dom_string_isequal(name, nscss_dom_string_tbody) ||
|
dom_string_caseless_isequal(name, nscss_dom_string_tbody) ||
|
||||||
dom_string_isequal(name, nscss_dom_string_tfoot) ||
|
dom_string_caseless_isequal(name, nscss_dom_string_tfoot) ||
|
||||||
dom_string_isequal(name, nscss_dom_string_tr) ||
|
dom_string_caseless_isequal(name, nscss_dom_string_tr) ||
|
||||||
dom_string_isequal(name, nscss_dom_string_td) ||
|
dom_string_caseless_isequal(name, nscss_dom_string_td) ||
|
||||||
dom_string_isequal(name, nscss_dom_string_th)) {
|
dom_string_caseless_isequal(name, nscss_dom_string_th)) {
|
||||||
err = dom_element_get_attribute(node,
|
err = dom_element_get_attribute(node,
|
||||||
nscss_dom_string_align, &align);
|
nscss_dom_string_align, &align);
|
||||||
if (err != DOM_NO_ERR || align == NULL) {
|
if (err != DOM_NO_ERR || align == NULL) {
|
||||||
@ -1951,7 +1951,7 @@ node_presentational_hint_text_align(nscss_select_ctx *ctx,
|
|||||||
dom_string_unref(name);
|
dom_string_unref(name);
|
||||||
|
|
||||||
return CSS_OK;
|
return CSS_OK;
|
||||||
} else if (dom_string_isequal(name, nscss_dom_string_table)) {
|
} else if (dom_string_caseless_isequal(name, nscss_dom_string_table)) {
|
||||||
/* Tables usually reset alignment */
|
/* Tables usually reset alignment */
|
||||||
hint->status = CSS_TEXT_ALIGN_INHERIT_IF_NON_MAGIC;
|
hint->status = CSS_TEXT_ALIGN_INHERIT_IF_NON_MAGIC;
|
||||||
|
|
||||||
@ -1979,8 +1979,8 @@ node_presentational_hint_padding_trbl(nscss_select_ctx *ctx,
|
|||||||
if (exc != DOM_NO_ERR)
|
if (exc != DOM_NO_ERR)
|
||||||
return CSS_BADPARM;
|
return CSS_BADPARM;
|
||||||
|
|
||||||
if (dom_string_isequal(name, nscss_dom_string_td) ||
|
if (dom_string_caseless_isequal(name, nscss_dom_string_td) ||
|
||||||
dom_string_isequal(name, nscss_dom_string_th)) {
|
dom_string_caseless_isequal(name, nscss_dom_string_th)) {
|
||||||
css_qname qs;
|
css_qname qs;
|
||||||
dom_node *tablenode = NULL;
|
dom_node *tablenode = NULL;
|
||||||
qs.ns = NULL;
|
qs.ns = NULL;
|
||||||
@ -2043,8 +2043,8 @@ node_presentational_hint_margin_rl(nscss_select_ctx *ctx,
|
|||||||
if (exc != DOM_NO_ERR)
|
if (exc != DOM_NO_ERR)
|
||||||
return CSS_BADPARM;
|
return CSS_BADPARM;
|
||||||
|
|
||||||
if (dom_string_isequal(n, nscss_dom_string_img) ||
|
if (dom_string_caseless_isequal(n, nscss_dom_string_img) ||
|
||||||
dom_string_isequal(n, nscss_dom_string_applet)) {
|
dom_string_caseless_isequal(n, nscss_dom_string_applet)) {
|
||||||
dom_string_unref(n);
|
dom_string_unref(n);
|
||||||
exc = dom_element_get_attribute(node,
|
exc = dom_element_get_attribute(node,
|
||||||
nscss_dom_string_hspace, &n);
|
nscss_dom_string_hspace, &n);
|
||||||
@ -2065,8 +2065,8 @@ node_presentational_hint_margin_rl(nscss_select_ctx *ctx,
|
|||||||
}
|
}
|
||||||
dom_string_unref(n);
|
dom_string_unref(n);
|
||||||
return CSS_OK;
|
return CSS_OK;
|
||||||
} else if (dom_string_isequal(n, nscss_dom_string_table) ||
|
} else if (dom_string_caseless_isequal(n, nscss_dom_string_table) ||
|
||||||
dom_string_isequal(n, nscss_dom_string_align)) {
|
dom_string_caseless_isequal(n, nscss_dom_string_align)) {
|
||||||
dom_string_unref(n);
|
dom_string_unref(n);
|
||||||
exc = dom_element_get_attribute(node,
|
exc = dom_element_get_attribute(node,
|
||||||
nscss_dom_string_align, &n);
|
nscss_dom_string_align, &n);
|
||||||
@ -2089,7 +2089,7 @@ node_presentational_hint_margin_rl(nscss_select_ctx *ctx,
|
|||||||
|
|
||||||
dom_string_unref(n);
|
dom_string_unref(n);
|
||||||
return CSS_OK;
|
return CSS_OK;
|
||||||
} else if (dom_string_isequal(n, nscss_dom_string_hr)) {
|
} else if (dom_string_caseless_isequal(n, nscss_dom_string_hr)) {
|
||||||
dom_string_unref(n);
|
dom_string_unref(n);
|
||||||
exc = dom_element_get_attribute(node,
|
exc = dom_element_get_attribute(node,
|
||||||
nscss_dom_string_align, &n);
|
nscss_dom_string_align, &n);
|
||||||
@ -2143,8 +2143,8 @@ node_presentational_hint_margin_tb(nscss_select_ctx *ctx,
|
|||||||
if (exc != DOM_NO_ERR)
|
if (exc != DOM_NO_ERR)
|
||||||
return CSS_BADPARM;
|
return CSS_BADPARM;
|
||||||
|
|
||||||
if (dom_string_isequal(name, nscss_dom_string_img) ||
|
if (dom_string_caseless_isequal(name, nscss_dom_string_img) ||
|
||||||
dom_string_isequal(name, nscss_dom_string_applet)) {
|
dom_string_caseless_isequal(name, nscss_dom_string_applet)) {
|
||||||
exc = dom_element_get_attribute(node, nscss_dom_string_vspace,
|
exc = dom_element_get_attribute(node, nscss_dom_string_vspace,
|
||||||
&vspace);
|
&vspace);
|
||||||
if (exc != DOM_NO_ERR) {
|
if (exc != DOM_NO_ERR) {
|
||||||
@ -2186,8 +2186,8 @@ node_presentational_hint_border_trbl_width(nscss_select_ctx *ctx,
|
|||||||
if (exc != DOM_NO_ERR)
|
if (exc != DOM_NO_ERR)
|
||||||
return CSS_BADPARM;
|
return CSS_BADPARM;
|
||||||
|
|
||||||
if (dom_string_isequal(name, nscss_dom_string_td) ||
|
if (dom_string_caseless_isequal(name, nscss_dom_string_td) ||
|
||||||
dom_string_isequal(name, nscss_dom_string_th)) {
|
dom_string_caseless_isequal(name, nscss_dom_string_th)) {
|
||||||
css_qname qs;
|
css_qname qs;
|
||||||
dom_node *tablenode = NULL;
|
dom_node *tablenode = NULL;
|
||||||
qs.ns = NULL;
|
qs.ns = NULL;
|
||||||
@ -2217,7 +2217,7 @@ node_presentational_hint_border_trbl_width(nscss_select_ctx *ctx,
|
|||||||
* return a reffed node to the CSS
|
* return a reffed node to the CSS
|
||||||
*/
|
*/
|
||||||
is_table_cell = true;
|
is_table_cell = true;
|
||||||
} else if (dom_string_isequal(name, nscss_dom_string_table)) {
|
} else if (dom_string_caseless_isequal(name, nscss_dom_string_table)) {
|
||||||
exc = dom_element_get_attribute(node, nscss_dom_string_border,
|
exc = dom_element_get_attribute(node, nscss_dom_string_border,
|
||||||
&width);
|
&width);
|
||||||
if (exc != DOM_NO_ERR) {
|
if (exc != DOM_NO_ERR) {
|
||||||
@ -2263,8 +2263,8 @@ node_presentational_hint_border_trbl_style(nscss_select_ctx *ctx,
|
|||||||
if (exc != DOM_NO_ERR)
|
if (exc != DOM_NO_ERR)
|
||||||
return CSS_BADPARM;
|
return CSS_BADPARM;
|
||||||
|
|
||||||
if (dom_string_isequal(name, nscss_dom_string_td) ||
|
if (dom_string_caseless_isequal(name, nscss_dom_string_td) ||
|
||||||
dom_string_isequal(name, nscss_dom_string_th)) {
|
dom_string_caseless_isequal(name, nscss_dom_string_th)) {
|
||||||
css_qname qs;
|
css_qname qs;
|
||||||
dom_node *tablenode = NULL;
|
dom_node *tablenode = NULL;
|
||||||
qs.ns = NULL;
|
qs.ns = NULL;
|
||||||
@ -2305,7 +2305,7 @@ node_presentational_hint_border_trbl_style(nscss_select_ctx *ctx,
|
|||||||
/* No need to unref tablenode, named_ancestor_node does not
|
/* No need to unref tablenode, named_ancestor_node does not
|
||||||
* return a reffed node to the CSS
|
* return a reffed node to the CSS
|
||||||
*/
|
*/
|
||||||
} else if (dom_string_isequal(name, nscss_dom_string_table)) {
|
} else if (dom_string_caseless_isequal(name, nscss_dom_string_table)) {
|
||||||
bool has_border = false;
|
bool has_border = false;
|
||||||
|
|
||||||
exc = dom_element_has_attribute(node,
|
exc = dom_element_has_attribute(node,
|
||||||
@ -2341,8 +2341,8 @@ node_presentational_hint_border_trbl_color(nscss_select_ctx *ctx,
|
|||||||
if (err != DOM_NO_ERR)
|
if (err != DOM_NO_ERR)
|
||||||
return CSS_PROPERTY_NOT_SET;
|
return CSS_PROPERTY_NOT_SET;
|
||||||
|
|
||||||
if (dom_string_isequal(name, nscss_dom_string_td) ||
|
if (dom_string_caseless_isequal(name, nscss_dom_string_td) ||
|
||||||
dom_string_isequal(name, nscss_dom_string_th)) {
|
dom_string_caseless_isequal(name, nscss_dom_string_th)) {
|
||||||
css_qname qs;
|
css_qname qs;
|
||||||
dom_node *tablenode = NULL;
|
dom_node *tablenode = NULL;
|
||||||
qs.ns = NULL;
|
qs.ns = NULL;
|
||||||
@ -2372,7 +2372,7 @@ node_presentational_hint_border_trbl_color(nscss_select_ctx *ctx,
|
|||||||
* return a reffed node to the CSS
|
* return a reffed node to the CSS
|
||||||
*/
|
*/
|
||||||
|
|
||||||
} else if (dom_string_isequal(name, nscss_dom_string_table)) {
|
} else if (dom_string_caseless_isequal(name, nscss_dom_string_table)) {
|
||||||
err = dom_element_get_attribute(node,
|
err = dom_element_get_attribute(node,
|
||||||
nscss_dom_string_bordercolor,
|
nscss_dom_string_bordercolor,
|
||||||
&bordercolor);
|
&bordercolor);
|
||||||
@ -2453,23 +2453,23 @@ node_presentational_hint_width(nscss_select_ctx *ctx,
|
|||||||
if (err != DOM_NO_ERR)
|
if (err != DOM_NO_ERR)
|
||||||
return CSS_PROPERTY_NOT_SET;
|
return CSS_PROPERTY_NOT_SET;
|
||||||
|
|
||||||
if (dom_string_isequal(name, nscss_dom_string_hr) ||
|
if (dom_string_caseless_isequal(name, nscss_dom_string_hr) ||
|
||||||
dom_string_isequal(name, nscss_dom_string_iframe) ||
|
dom_string_caseless_isequal(name, nscss_dom_string_iframe) ||
|
||||||
dom_string_isequal(name, nscss_dom_string_img) ||
|
dom_string_caseless_isequal(name, nscss_dom_string_img) ||
|
||||||
dom_string_isequal(name, nscss_dom_string_object) ||
|
dom_string_caseless_isequal(name, nscss_dom_string_object) ||
|
||||||
dom_string_isequal(name, nscss_dom_string_table) ||
|
dom_string_caseless_isequal(name, nscss_dom_string_table) ||
|
||||||
dom_string_isequal(name, nscss_dom_string_td) ||
|
dom_string_caseless_isequal(name, nscss_dom_string_td) ||
|
||||||
dom_string_isequal(name, nscss_dom_string_th) ||
|
dom_string_caseless_isequal(name, nscss_dom_string_th) ||
|
||||||
dom_string_isequal(name, nscss_dom_string_applet)) {
|
dom_string_caseless_isequal(name, nscss_dom_string_applet)) {
|
||||||
err = dom_element_get_attribute(node,
|
err = dom_element_get_attribute(node,
|
||||||
nscss_dom_string_width,
|
nscss_dom_string_width,
|
||||||
&width);
|
&width);
|
||||||
} else if (dom_string_isequal(name, nscss_dom_string_textarea)) {
|
} else if (dom_string_caseless_isequal(name, nscss_dom_string_textarea)) {
|
||||||
textarea = true;
|
textarea = true;
|
||||||
err = dom_element_get_attribute(node,
|
err = dom_element_get_attribute(node,
|
||||||
nscss_dom_string_cols,
|
nscss_dom_string_cols,
|
||||||
&width);
|
&width);
|
||||||
} else if (dom_string_isequal(name, nscss_dom_string_input)) {
|
} else if (dom_string_caseless_isequal(name, nscss_dom_string_input)) {
|
||||||
input = true;
|
input = true;
|
||||||
err = dom_element_get_attribute(node,
|
err = dom_element_get_attribute(node,
|
||||||
nscss_dom_string_size,
|
nscss_dom_string_size,
|
||||||
@ -2533,17 +2533,17 @@ node_presentational_hint_height(nscss_select_ctx *ctx,
|
|||||||
if (err != DOM_NO_ERR)
|
if (err != DOM_NO_ERR)
|
||||||
return CSS_PROPERTY_NOT_SET;
|
return CSS_PROPERTY_NOT_SET;
|
||||||
|
|
||||||
if (dom_string_isequal(name, nscss_dom_string_iframe) ||
|
if (dom_string_caseless_isequal(name, nscss_dom_string_iframe) ||
|
||||||
dom_string_isequal(name, nscss_dom_string_td) ||
|
dom_string_caseless_isequal(name, nscss_dom_string_td) ||
|
||||||
dom_string_isequal(name, nscss_dom_string_th) ||
|
dom_string_caseless_isequal(name, nscss_dom_string_th) ||
|
||||||
dom_string_isequal(name, nscss_dom_string_tr) ||
|
dom_string_caseless_isequal(name, nscss_dom_string_tr) ||
|
||||||
dom_string_isequal(name, nscss_dom_string_img) ||
|
dom_string_caseless_isequal(name, nscss_dom_string_img) ||
|
||||||
dom_string_isequal(name, nscss_dom_string_object) ||
|
dom_string_caseless_isequal(name, nscss_dom_string_object) ||
|
||||||
dom_string_isequal(name, nscss_dom_string_applet)) {
|
dom_string_caseless_isequal(name, nscss_dom_string_applet)) {
|
||||||
err = dom_element_get_attribute(node,
|
err = dom_element_get_attribute(node,
|
||||||
nscss_dom_string_height,
|
nscss_dom_string_height,
|
||||||
&height);
|
&height);
|
||||||
} else if (dom_string_isequal(name, nscss_dom_string_textarea)) {
|
} else if (dom_string_caseless_isequal(name, nscss_dom_string_textarea)) {
|
||||||
textarea = true;
|
textarea = true;
|
||||||
err = dom_element_get_attribute(node,
|
err = dom_element_get_attribute(node,
|
||||||
nscss_dom_string_rows,
|
nscss_dom_string_rows,
|
||||||
@ -2588,7 +2588,7 @@ node_presentational_hint_font_size(nscss_select_ctx *ctx,
|
|||||||
return CSS_NOMEM;
|
return CSS_NOMEM;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!dom_string_isequal(node_name, nscss_dom_string_font)) {
|
if (!dom_string_caseless_isequal(node_name, nscss_dom_string_font)) {
|
||||||
dom_string_unref(node_name);
|
dom_string_unref(node_name);
|
||||||
return CSS_PROPERTY_NOT_SET;
|
return CSS_PROPERTY_NOT_SET;
|
||||||
}
|
}
|
||||||
@ -2627,11 +2627,11 @@ node_presentational_hint_float(nscss_select_ctx *ctx,
|
|||||||
}
|
}
|
||||||
|
|
||||||
/** \todo input[type=image][align=*] - $11.3.3 */
|
/** \todo input[type=image][align=*] - $11.3.3 */
|
||||||
if (!dom_string_isequal(node_name, nscss_dom_string_applet) &&
|
if (!dom_string_caseless_isequal(node_name, nscss_dom_string_applet) &&
|
||||||
!dom_string_isequal(node_name, nscss_dom_string_embed) &&
|
!dom_string_caseless_isequal(node_name, nscss_dom_string_embed) &&
|
||||||
!dom_string_isequal(node_name, nscss_dom_string_iframe) &&
|
!dom_string_caseless_isequal(node_name, nscss_dom_string_iframe) &&
|
||||||
!dom_string_isequal(node_name, nscss_dom_string_img) &&
|
!dom_string_caseless_isequal(node_name, nscss_dom_string_img) &&
|
||||||
!dom_string_isequal(node_name, nscss_dom_string_object)) {
|
!dom_string_caseless_isequal(node_name, nscss_dom_string_object)) {
|
||||||
dom_string_unref(node_name);
|
dom_string_unref(node_name);
|
||||||
return CSS_PROPERTY_NOT_SET;
|
return CSS_PROPERTY_NOT_SET;
|
||||||
}
|
}
|
||||||
@ -2673,7 +2673,7 @@ node_presentational_hint_color(nscss_select_ctx *ctx,
|
|||||||
return CSS_NOMEM;
|
return CSS_NOMEM;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (dom_string_isequal(node_name, nscss_dom_string_a)) {
|
if (dom_string_caseless_isequal(node_name, nscss_dom_string_a)) {
|
||||||
/* find body node */
|
/* find body node */
|
||||||
css_qname qs;
|
css_qname qs;
|
||||||
dom_node *bodynode = NULL;
|
dom_node *bodynode = NULL;
|
||||||
@ -2718,7 +2718,7 @@ node_presentational_hint_color(nscss_select_ctx *ctx,
|
|||||||
return CSS_PROPERTY_NOT_SET;
|
return CSS_PROPERTY_NOT_SET;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else if (dom_string_isequal(node_name, nscss_dom_string_body)) {
|
} else if (dom_string_caseless_isequal(node_name, nscss_dom_string_body)) {
|
||||||
err = dom_element_get_attribute(node, nscss_dom_string_text, &color);
|
err = dom_element_get_attribute(node, nscss_dom_string_text, &color);
|
||||||
if ((err != DOM_NO_ERR) || (color == NULL)) {
|
if ((err != DOM_NO_ERR) || (color == NULL)) {
|
||||||
dom_string_unref(node_name);
|
dom_string_unref(node_name);
|
||||||
|
Loading…
Reference in New Issue
Block a user