summaryrefslogtreecommitdiff
path: root/render
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2014-07-18 09:30:27 +0100
committerMichael Drake <tlsa@netsurf-browser.org>2014-07-18 09:30:27 +0100
commit7063846614a44cfb81a3590fa84328039ad307f8 (patch)
treeea26cbc80b2bd284eca124b338ed7f5276da4f74 /render
parentb1eb026c6e3f4e941e60fabe65445263afcad03b (diff)
downloadnetsurf-7063846614a44cfb81a3590fa84328039ad307f8.tar.gz
netsurf-7063846614a44cfb81a3590fa84328039ad307f8.tar.bz2
Restrict 'drill down' to specific box types.
Diffstat (limited to 'render')
-rw-r--r--render/box_construct.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/render/box_construct.c b/render/box_construct.c
index 3404ca460..8eeb7bc33 100644
--- a/render/box_construct.c
+++ b/render/box_construct.c
@@ -513,8 +513,16 @@ static bool box_construct_marker(struct box *box, const char *title,
while (last_inner != NULL) {
if (last_inner->list_marker != NULL)
break;
-
- last_inner = last_inner->last;
+ if (last_inner->type ==
+ BOX_INLINE_CONTAINER ||
+ last_inner->type ==
+ BOX_FLOAT_LEFT ||
+ last_inner->type ==
+ BOX_FLOAT_RIGHT) {
+ last_inner = last_inner->last;
+ } else {
+ last_inner = NULL;
+ }
}
if (last_inner != NULL) {
last = last_inner;