Author: tlsa
Date: Fri Feb 20 06:12:32 2009
New Revision: 6574
URL:
http://source.netsurf-browser.org?rev=6574&view=rev
Log:
Fix handling of URLs on float boxes (which have no style).
Modified:
trunk/netsurf/desktop/browser.c
Modified: trunk/netsurf/desktop/browser.c
URL:
http://source.netsurf-browser.org/trunk/netsurf/desktop/browser.c?rev=657...
==============================================================================
--- trunk/netsurf/desktop/browser.c (original)
+++ trunk/netsurf/desktop/browser.c Fri Feb 20 06:12:32 2009
@@ -2383,9 +2383,15 @@
gui_pointer_shape get_pointer_shape(struct box *box)
{
gui_pointer_shape pointer;
-
- assert(box->style);
- switch (box->style->cursor) {
+ struct css_style *style;
+
+ if (box->type == BOX_FLOAT_LEFT || box->type == BOX_FLOAT_RIGHT)
+ style = box->children->style;
+ else
+ style = box->style;
+
+ assert(style);
+ switch (style->cursor) {
case CSS_CURSOR_AUTO:
if (box->href || (box->gadget &&
(box->gadget->type == GADGET_IMAGE ||