diff options
author | Vincent Sanders <vince@kyllikki.org> | 2024-03-05 08:29:15 +0000 |
---|---|---|
committer | Vincent Sanders <vince@kyllikki.org> | 2024-03-05 21:33:13 +0000 |
commit | b5f4d905f958ebfce9be2ab8daa5d42b62f7277d (patch) | |
tree | 2d2b35635858274945de6ac503221877c9ceae21 /content/handlers/css/hints.c | |
parent | 199f86dcf10bc62b9428f012381e32728bff3014 (diff) | |
download | netsurf-b5f4d905f958ebfce9be2ab8daa5d42b62f7277d.tar.gz netsurf-b5f4d905f958ebfce9be2ab8daa5d42b62f7277d.tar.bz2 |
use attributes to indicate switch fall through instead of comments
Diffstat (limited to 'content/handlers/css/hints.c')
-rw-r--r-- | content/handlers/css/hints.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/content/handlers/css/hints.c b/content/handlers/css/hints.c index 145cf8185..0f246a64c 100644 --- a/content/handlers/css/hints.c +++ b/content/handlers/css/hints.c @@ -1650,22 +1650,22 @@ css_error node_presentational_hint(void *pw, void *node, css_hint_width(pw, node); css_hint_table_cell_border_padding(pw, node); css_hint_white_space_nowrap(pw, node); - /* fall through */ + fallthrough; case DOM_HTML_ELEMENT_TYPE_TR: css_hint_height(pw, node); - /* fall through */ + fallthrough; case DOM_HTML_ELEMENT_TYPE_THEAD: case DOM_HTML_ELEMENT_TYPE_TBODY: case DOM_HTML_ELEMENT_TYPE_TFOOT: css_hint_text_align_special(pw, node); - /* fall through */ + fallthrough; case DOM_HTML_ELEMENT_TYPE_COL: css_hint_vertical_align_table_cells(pw, node); break; case DOM_HTML_ELEMENT_TYPE_APPLET: case DOM_HTML_ELEMENT_TYPE_IMG: css_hint_margin_hspace_vspace(pw, node); - /* fall through */ + fallthrough; case DOM_HTML_ELEMENT_TYPE_EMBED: case DOM_HTML_ELEMENT_TYPE_IFRAME: case DOM_HTML_ELEMENT_TYPE_OBJECT: @@ -1688,7 +1688,7 @@ css_error node_presentational_hint(void *pw, void *node, break; case DOM_HTML_ELEMENT_TYPE_CAPTION: css_hint_caption_side(pw, node); - /* fall through */ + fallthrough; case DOM_HTML_ELEMENT_TYPE_DIV: css_hint_text_align_special(pw, node); break; |