diff options
author | John Mark Bell <jmb@netsurf-browser.org> | 2009-04-05 19:17:24 +0000 |
---|---|---|
committer | John Mark Bell <jmb@netsurf-browser.org> | 2009-04-05 19:17:24 +0000 |
commit | 2531079866b194c05f5ef16907838e7becd3ac2b (patch) | |
tree | 91d85a1d742ba9371e3a4aeb74158d312556fa5b /desktop/history_core.c | |
parent | 47f67a7e87438d0e712225e660c12c48f8510f61 (diff) | |
download | netsurf-2531079866b194c05f5ef16907838e7becd3ac2b.tar.gz netsurf-2531079866b194c05f5ef16907838e7becd3ac2b.tar.bz2 |
Revert r6973. Apparently, it causes loads of problems.
svn path=/trunk/netsurf/; revision=7047
Diffstat (limited to 'desktop/history_core.c')
-rw-r--r-- | desktop/history_core.c | 39 |
1 files changed, 0 insertions, 39 deletions
diff --git a/desktop/history_core.c b/desktop/history_core.c index 433889bea..d6feb69be 100644 --- a/desktop/history_core.c +++ b/desktop/history_core.c @@ -29,7 +29,6 @@ #include "content/content.h" #include "content/urldb.h" #include "css/css.h" -#include "desktop/browser.h" #include "desktop/gui.h" #include "desktop/history_core.h" #include "desktop/plotters.h" @@ -64,8 +63,6 @@ struct history_entry { int x; /**< Position of node. */ int y; /**< Position of node. */ struct bitmap *bitmap; /**< Thumbnail bitmap, or 0. */ - int sx; /**< X scroll offset. */ - int sy; /**< Y scroll offset. */ }; /** History tree for a window. */ @@ -262,8 +259,6 @@ void history_add(struct history *history, struct content *content, entry->forward = entry->forward_pref = entry->forward_last = 0; entry->children = 0; entry->bitmap = 0; - entry->sx = -1; - entry->sy = -1; if (history->current) { if (history->current->forward_last) history->current->forward_last->next = entry; @@ -760,37 +755,3 @@ struct history_entry *history_find_position(struct history_entry *entry, return 0; } - -/** - * Save in the history the scroll offsets of the current page - * \param history history with the page - * \param sx x offset to be set - * \param sy y offset to be set - */ - -void history_set_current_scroll(struct history *history, int sx, int sy) -{ - if (!history || !history->current) - return; - - history->current->sx = sx; - history->current->sy = sy; -} - -/** - * Load from the history the scroll offsets of the current page - * \param history history with the page - * \param sx updated to x offset - * \param sy updated to y offset - * \return true on success - */ - -bool history_get_current_scroll(struct history *history, int *sx, int *sy) -{ - if (!history || !history->current) - return false; - - *sx = history->current->sx; - *sy = history->current->sy; - return true; -} |