mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-11-27 00:40:15 +03:00
Check for null style before using it.
svn path=/trunk/netsurf/; revision=2986
This commit is contained in:
parent
a785bc25f7
commit
7b30364bc3
@ -216,8 +216,9 @@ bool layout_block_context(struct box *block, struct content *content)
|
||||
* correct handling of floats.
|
||||
*/
|
||||
|
||||
if (box->style->position == CSS_POSITION_ABSOLUTE ||
|
||||
box->style->position == CSS_POSITION_FIXED) {
|
||||
if (box->style &&
|
||||
(box->style->position == CSS_POSITION_ABSOLUTE||
|
||||
box->style->position == CSS_POSITION_FIXED)) {
|
||||
box->x = box->parent->padding[LEFT];
|
||||
goto advance_to_next_box;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user