summaryrefslogtreecommitdiff
path: root/css/css.c
diff options
context:
space:
mode:
authorJohn Mark Bell <jmb@netsurf-browser.org>2004-04-02 23:12:26 +0000
committerJohn Mark Bell <jmb@netsurf-browser.org>2004-04-02 23:12:26 +0000
commita260f648f8fd215cf5f33bb280f689df3f848cd0 (patch)
tree9bd8ed171af215a205131ec891a4faafaa29d7aa /css/css.c
parent095d17b8ad1238c0f55d2ef650145e0deca90d39 (diff)
downloadnetsurf-a260f648f8fd215cf5f33bb280f689df3f848cd0.tar.gz
netsurf-a260f648f8fd215cf5f33bb280f689df3f848cd0.tar.bz2
[project @ 2004-04-02 23:12:26 by jmb]
Implement CSS cursor property svn path=/import/netsurf/; revision=705
Diffstat (limited to 'css/css.c')
-rw-r--r--css/css.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/css/css.c b/css/css.c
index 3b8dbeee9..6b83291fe 100644
--- a/css/css.c
+++ b/css/css.c
@@ -49,6 +49,7 @@ const struct css_style css_base_style = {
{ 2, CSS_UNIT_PX } }, CSS_BORDER_STYLE_NONE } },
CSS_CLEAR_NONE,
0x000000,
+ CSS_CURSOR_AUTO,
CSS_DISPLAY_BLOCK,
CSS_FLOAT_NONE,
{ CSS_FONT_SIZE_LENGTH, { { 10, CSS_UNIT_PT } } },
@@ -87,6 +88,7 @@ const struct css_style css_empty_style = {
{ 0, CSS_UNIT_PX } }, CSS_BORDER_STYLE_INHERIT } },
CSS_CLEAR_INHERIT,
CSS_COLOR_INHERIT,
+ CSS_CURSOR_INHERIT,
CSS_DISPLAY_INHERIT,
CSS_FLOAT_INHERIT,
{ CSS_FONT_SIZE_INHERIT, { { 1, CSS_UNIT_EM } } },
@@ -125,6 +127,7 @@ const struct css_style css_blank_style = {
{ 2, CSS_UNIT_PX } }, CSS_BORDER_STYLE_NONE } },
CSS_CLEAR_NONE,
CSS_COLOR_INHERIT,
+ CSS_CURSOR_INHERIT,
CSS_DISPLAY_INLINE,
CSS_FLOAT_NONE,
{ CSS_FONT_SIZE_INHERIT, { { 1, CSS_UNIT_EM } } },
@@ -681,6 +684,7 @@ void css_dump_style(const struct css_style * const style)
fprintf(stderr, "background-color: #%lx; ", style->background_color);
fprintf(stderr, "clear: %s; ", css_clear_name[style->clear]);
fprintf(stderr, "color: #%lx; ", style->color);
+ fprintf(stderr, "cursor: %s", css_cursor_name[style->cursor]);
fprintf(stderr, "display: %s; ", css_display_name[style->display]);
fprintf(stderr, "float: %s; ", css_float_name[style->float_]);
fprintf(stderr, "font: %s %s ", css_font_style_name[style->font_style],
@@ -826,6 +830,8 @@ void css_cascade(struct css_style * const style, const struct css_style * const
style->clear = apply->clear;
if (apply->color != CSS_COLOR_INHERIT)
style->color = apply->color;
+ if (apply->cursor != CSS_CURSOR_INHERIT)
+ style->cursor = apply->cursor;
if (apply->display != CSS_DISPLAY_INHERIT)
style->display = apply->display;
if (apply->float_ != CSS_FLOAT_INHERIT)
@@ -920,6 +926,8 @@ void css_merge(struct css_style * const style, const struct css_style * const ap
style->clear = apply->clear;
if (apply->color != CSS_COLOR_INHERIT)
style->color = apply->color;
+ if (apply->cursor != CSS_CURSOR_INHERIT)
+ style->cursor = apply->cursor;
if (apply->display != CSS_DISPLAY_INHERIT)
style->display = apply->display;
if (apply->float_ != CSS_FLOAT_INHERIT)