1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-12-04 14:46:47 -05:00

[ecmascript] debug in check_for_rerender

This commit is contained in:
Witold Filipczyk 2021-10-07 18:27:21 +02:00
parent 8c7223882a
commit 33d8c551ea
2 changed files with 4 additions and 0 deletions

View File

@ -441,6 +441,7 @@ render_document(struct view_state *vs, struct document_view *doc_view,
process_snippets(vs->ecmascript,
&vs->ecmascript->onload_snippets,
&vs->ecmascript->current_onload_snippet);
check_for_rerender(vs->ecmascript, "process_snippets");
}
}
#endif

View File

@ -278,6 +278,9 @@ delayed_reload(void *data)
void
check_for_rerender(struct ecmascript_interpreter *interpreter, const char* text)
{
#ifdef ECMASCRIPT_DEBUG
fprintf(stderr, "%s:%s %s %d\n", __FILE__, __FUNCTION__, text, interpreter->changed);
#endif
if (interpreter->changed) {
struct document_view *doc_view = interpreter->vs->doc_view;
struct document *document = doc_view->document;