mirror of
https://github.com/rkd77/elinks.git
synced 2025-01-03 14:57:44 -05:00
[session] load_common as separate function
Call it instead of display_timer in delayed_reload
This commit is contained in:
parent
5175ecd2b7
commit
5483782949
@ -309,11 +309,14 @@ static void
|
|||||||
delayed_reload(void *data)
|
delayed_reload(void *data)
|
||||||
{
|
{
|
||||||
struct delayed_rel *rel = (struct delayed_rel *)data;
|
struct delayed_rel *rel = (struct delayed_rel *)data;
|
||||||
|
struct session *ses = rel->ses;
|
||||||
|
|
||||||
assert(rel);
|
assert(rel);
|
||||||
reset_document(rel->document);
|
reset_document(rel->document);
|
||||||
dump_xhtml(rel->cached, rel->document, rel->was_write);
|
dump_xhtml(rel->cached, rel->document, rel->was_write);
|
||||||
display_timer(rel->ses);
|
|
||||||
|
draw_formatted(ses, 3);
|
||||||
|
load_common(ses);
|
||||||
mem_free(rel);
|
mem_free(rel);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -579,7 +579,12 @@ display_timer(struct session *ses)
|
|||||||
(void (*)(void *)) display_timer,
|
(void (*)(void *)) display_timer,
|
||||||
ses);
|
ses);
|
||||||
/* The expired timer ID has now been erased. */
|
/* The expired timer ID has now been erased. */
|
||||||
|
load_common(ses);
|
||||||
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
load_common(struct session *ses)
|
||||||
|
{
|
||||||
load_frames(ses, ses->doc_view);
|
load_frames(ses, ses->doc_view);
|
||||||
load_css_imports(ses, ses->doc_view);
|
load_css_imports(ses, ses->doc_view);
|
||||||
load_ecmascript_imports(ses, ses->doc_view);
|
load_ecmascript_imports(ses, ses->doc_view);
|
||||||
@ -587,7 +592,6 @@ display_timer(struct session *ses)
|
|||||||
process_file_requests(ses);
|
process_file_requests(ses);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
struct questions_entry {
|
struct questions_entry {
|
||||||
LIST_HEAD_EL(struct questions_entry);
|
LIST_HEAD_EL(struct questions_entry);
|
||||||
|
|
||||||
|
@ -313,6 +313,8 @@ struct frame *ses_find_iframe(struct session *, char *);
|
|||||||
|
|
||||||
void free_files(struct session *);
|
void free_files(struct session *);
|
||||||
void display_timer(struct session *ses);
|
void display_timer(struct session *ses);
|
||||||
|
void load_common(struct session *ses);
|
||||||
|
|
||||||
|
|
||||||
/** session_is_loading() is like !!get_current_download() but doesn't take
|
/** session_is_loading() is like !!get_current_download() but doesn't take
|
||||||
* session.req_sent into account.
|
* session.req_sent into account.
|
||||||
|
Loading…
Reference in New Issue
Block a user