From 6a55bafba841522c3697400a6983b3409c0e174b Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Wed, 7 Apr 2010 17:42:21 +0000 Subject: Fix for new cache. svn path=/trunk/netsurf/; revision=10283 --- riscos/textselection.c | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'riscos/textselection.c') diff --git a/riscos/textselection.c b/riscos/textselection.c index 7b4578ad9..661f9b9af 100644 --- a/riscos/textselection.c +++ b/riscos/textselection.c @@ -25,6 +25,7 @@ #include #include "oslib/osfile.h" #include "oslib/wimp.h" +#include "content/hlcache.h" #include "desktop/gui.h" #include "desktop/selection.h" #include "desktop/textinput.h" @@ -522,7 +523,7 @@ void ro_gui_selection_dragging(wimp_message *message) wimp_full_message_dragging *drag = (wimp_full_message_dragging*)message; struct box *textarea = NULL; struct browser_window *bw; - struct content *content; + hlcache_handle *h; int gadget_box_x = 0; int gadget_box_y = 0; struct gui_window *g; @@ -549,13 +550,13 @@ void ro_gui_selection_dragging(wimp_message *message) return; bw = g->bw; - content = bw->current_content; - if (content && content->type == CONTENT_HTML && - content->data.html.layout) { - struct box *box = content->data.html.layout; + h = bw->current_content; + if (h && content_get_type(h) == CONTENT_HTML && + html_get_box_tree(h)) { + struct box *box = html_get_box_tree(h); while ((box = box_at_point(box, pos.x, pos.y, - &box_x, &box_y, &content))) { + &box_x, &box_y, &h))) { if (box->style && css_computed_visibility(box->style) == CSS_VISIBILITY_HIDDEN) -- cgit v1.2.3