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/html/dom_event.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/html/dom_event.c')
-rw-r--r-- | content/handlers/html/dom_event.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/content/handlers/html/dom_event.c b/content/handlers/html/dom_event.c index d389a21b4..d42882515 100644 --- a/content/handlers/html/dom_event.c +++ b/content/handlers/html/dom_event.c @@ -25,6 +25,7 @@ #include <string.h> #include "utils/config.h" +#include "utils/utils.h" #include "utils/corestrings.h" #include "utils/nsoption.h" #include "utils/log.h" @@ -691,6 +692,7 @@ dom_default_action_DOMNodeInsertedIntoDocument_cb(struct dom_event *evt, switch (tag_type) { case DOM_HTML_ELEMENT_TYPE_SCRIPT: dom_SCRIPT_showed_up(htmlc, (dom_html_script_element *) node); + fallthrough; default: break; } @@ -740,6 +742,7 @@ dom_default_action_DOMSubtreeModified_cb(struct dom_event *evt, void *pw) case DOM_HTML_ELEMENT_TYPE_TEXTAREA: case DOM_HTML_ELEMENT_TYPE_INPUT: html_texty_element_update(htmlc, (dom_node *)node); + fallthrough; default: break; } |