diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2010-04-07 17:42:21 +0000 |
---|---|---|
committer | Michael Drake <tlsa@netsurf-browser.org> | 2010-04-07 17:42:21 +0000 |
commit | 6a55bafba841522c3697400a6983b3409c0e174b (patch) | |
tree | 1eeecb1b432992bf936c89a9ab83805453351f25 /riscos/textselection.c | |
parent | ec2f35cb6f59c30ebed564337486d49383e99f11 (diff) | |
download | netsurf-6a55bafba841522c3697400a6983b3409c0e174b.tar.gz netsurf-6a55bafba841522c3697400a6983b3409c0e174b.tar.bz2 |
Fix for new cache.
svn path=/trunk/netsurf/; revision=10283
Diffstat (limited to 'riscos/textselection.c')
-rw-r--r-- | riscos/textselection.c | 13 |
1 files changed, 7 insertions, 6 deletions
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 <string.h> #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) |