summaryrefslogtreecommitdiff
path: root/content/handlers/html/interaction.c
diff options
context:
space:
mode:
authorVincent Sanders <vince@kyllikki.org>2019-11-12 22:48:00 +0000
committerVincent Sanders <vince@kyllikki.org>2019-11-12 22:48:00 +0000
commit185d0343236afbd1d900339b45c02985bd2d4ecb (patch)
tree9515af037dae2246ab3b7e822ae3aeee09b864ac /content/handlers/html/interaction.c
parent074407d251dfb93bdd663fe0d26079c902bc3b12 (diff)
downloadnetsurf-185d0343236afbd1d900339b45c02985bd2d4ecb.tar.gz
netsurf-185d0343236afbd1d900339b45c02985bd2d4ecb.tar.bz2
make mouse track and mouse action content handlers return an error code
Diffstat (limited to 'content/handlers/html/interaction.c')
-rw-r--r--content/handlers/html/interaction.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/content/handlers/html/interaction.c b/content/handlers/html/interaction.c
index 37951b666..930c79593 100644
--- a/content/handlers/html/interaction.c
+++ b/content/handlers/html/interaction.c
@@ -585,7 +585,7 @@ html_mouse_action(struct content *c,
x - box_x, y - box_y);
/* TODO: Set appropriate statusbar message */
- return;
+ return NSERROR_OK;
}
if (html->drag_type == HTML_DRAG_CONTENT_SELECTION ||
@@ -596,7 +596,7 @@ html_mouse_action(struct content *c,
box_coords(box, &box_x, &box_y);
content_mouse_track(box->object, bw, mouse,
x - box_x, y - box_y);
- return;
+ return NSERROR_OK;
}
/* Content related drags handled by now */
@@ -809,7 +809,7 @@ html_mouse_action(struct content *c,
/** \todo Find a way to not ignore errors */
coords = calloc(1, sizeof(*coords));
if (coords == NULL) {
- return;
+ return NSERROR_OK;
}
coords->x = x - gadget_box_x;
coords->y = y - gadget_box_y;
@@ -818,7 +818,7 @@ html_mouse_action(struct content *c,
corestring_dom___ns_key_image_coords_node_data,
coords, html__image_coords_dom_user_data_handler,
&oldcoords) != DOM_NO_ERR)
- return;
+ return NSERROR_OK;
free(oldcoords);
}
/* Fall through */
@@ -1165,6 +1165,7 @@ html_mouse_action(struct content *c,
NSLOG(netsurf, ERROR, "%s", messages_get_errorcode(res));
}
+ return res;
}