diff options
author | Jorge Arellano Cid <jcid@dillo.org> | 2008-12-25 09:57:55 -0300 |
---|---|---|
committer | Jorge Arellano Cid <jcid@dillo.org> | 2008-12-25 09:57:55 -0300 |
commit | 5486bedf18450ae4de413c4174a0175948c95c3e (patch) | |
tree | 2f7bcdd68df40a36e4f8f3f67c70ce108bf321df /src/nav.c | |
parent | a821e0e87480e8b812ab5975c1031d5ee5eb2587 (diff) |
Started code cleanup of the image code mainly in dicache.c. part#1
Diffstat (limited to 'src/nav.c')
-rw-r--r-- | src/nav.c | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -194,12 +194,13 @@ static void Nav_stack_clean(BrowserWindow *bw) static void Nav_open_url(BrowserWindow *bw, const DilloUrl *url, int offset) { DilloUrl *old_url; - bool_t MustLoad, ForceReload; + bool_t MustLoad, ForceReload, Repush; int x, y, idx, ClientKey; DilloWeb *Web; MSG("Nav_open_url: new url='%s'\n", URL_STR_(url)); + Repush = (URL_FLAGS(url) & URL_ReloadFromCache) != 0; ForceReload = (URL_FLAGS(url) & (URL_E2EQuery + URL_ReloadFromCache)) != 0; /* Get the url of the current page */ @@ -207,8 +208,8 @@ static void Nav_open_url(BrowserWindow *bw, const DilloUrl *url, int offset) old_url = a_History_get_url(NAV_UIDX(bw, idx)); _MSG("Nav_open_url: old_url='%s' idx=%d\n", URL_STR(old_url), idx); /* Record current scrolling position */ - if (URL_FLAGS(url) & URL_ReloadFromCache) { - /* Repush operation, don't change scroll position */ + if (Repush) { + /* Don't change scroll position */ } else if (old_url) { a_UIcmd_get_scroll_xy(bw, &x, &y); Nav_save_scroll_pos(bw, idx, x, y); |