summaryrefslogtreecommitdiffstats
path: root/src/libserver
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2018-06-24 11:19:09 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2018-06-24 11:19:09 +0100
commitf48f00d4e8d5e10354b3880fdc1c9f3d5efc99f7 (patch)
treed21fbfef2dd375b78232201152d01be447de8a7d /src/libserver
parentfc5da893359424e53801d6d3709174de274e4a81 (diff)
downloadrspamd-f48f00d4e8d5e10354b3880fdc1c9f3d5efc99f7.tar.gz
rspamd-f48f00d4e8d5e10354b3880fdc1c9f3d5efc99f7.zip
[Minor] Opacity is actually not supported attribute
Diffstat (limited to 'src/libserver')
-rw-r--r--src/libserver/html.c17
-rw-r--r--src/libserver/html.h1
2 files changed, 0 insertions, 18 deletions
diff --git a/src/libserver/html.c b/src/libserver/html.c
index 27aea6a11..4e7e4dc23 100644
--- a/src/libserver/html.c
+++ b/src/libserver/html.c
@@ -1164,9 +1164,6 @@ rspamd_html_parse_tag_component (rspamd_mempool_t *pool,
if (g_ascii_strncasecmp (p, "bgcolor", len) == 0) {
NEW_COMPONENT (RSPAMD_HTML_COMPONENT_BGCOLOR);
}
- else if (g_ascii_strncasecmp (p, "opacity", len) == 0) {
- NEW_COMPONENT (RSPAMD_HTML_COMPONENT_OPACITY);
- }
}
else if (len == 4) {
if (g_ascii_strncasecmp (p, "size", len) == 0) {
@@ -2324,20 +2321,6 @@ rspamd_html_process_block_tag (rspamd_mempool_t *pool, struct html_tag *tag,
&bl->font_color);
msg_debug_html ("got color: %xd", bl->font_color.d.val);
break;
- case RSPAMD_HTML_COMPONENT_OPACITY:
- rspamd_strlcpy (numbuf, comp->start,
- MIN (sizeof (numbuf), comp->len + 1));
- opacity = strtod (numbuf, NULL);
-
- if (opacity > 1) {
- opacity = 1;
- }
- else if (opacity < 0) {
- opacity = 0;
- }
-
- bl->font_color.d.comp.alpha = (guint8)(opacity * 255.0);
- break;
default:
/* NYI */
break;
diff --git a/src/libserver/html.h b/src/libserver/html.h
index 24ea0d3c7..0414f48d9 100644
--- a/src/libserver/html.h
+++ b/src/libserver/html.h
@@ -35,7 +35,6 @@ enum html_component_type {
RSPAMD_HTML_COMPONENT_WIDTH,
RSPAMD_HTML_COMPONENT_HEIGHT,
RSPAMD_HTML_COMPONENT_SIZE,
- RSPAMD_HTML_COMPONENT_OPACITY
};
struct html_tag_component {